[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linking dynamic AND static with the same lt-libraries

From: Roesner Thomas
Subject: Linking dynamic AND static with the same lt-libraries
Date: Mon, 12 Dec 2005 09:28:54 +0100

Dear Baurzhan,

"does not work" means, that the linker can find all refered symbols in the 
dynamic scenario, but that there are some unresolved symbols in the static 

Looking in subdir/.libs/mylib.a shows the required symbols in the text area of 
the library.

Kind Regards
Thomas Roesner

-----Urspr√ľngliche Nachricht-----
Von: address@hidden [mailto:address@hidden Im Auftrag von Baurzhan Ismagulov
Gesendet: Freitag, 9. Dezember 2005 22:21
An: address@hidden
Betreff: Re: (no subject)

Hello Thomas,

On Fri, Dec 09, 2005 at 04:25:42PM +0100, Roesner Thomas wrote:
> The point is, that I want to build all programs with shared libraries,
> but one with static libraries, wich are based on the same sourcecode
> than the shared libraries. Adding "myprog_LDFLAGS = -all-static" does
> not work.

Hmm, works for me.

address@hidden:/tmp/a$ ldd .libs/a0 a1
.libs/a0: =>  (0xffffe000) => not found => /lib/tls/ (0xb7db5000)
        /lib/ (0xb7f04000)
        not a dynamic executable

Could you perhaps elaborate what you mean by "does not work"?

With kind regards,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]