bug-libtool
[Top][All Lists]
Advanced

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

convenience libraries.


From: Pooh
Subject: convenience libraries.
Date: Fri, 16 Dec 2005 17:01:57 +0300
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

Good day!

I want to build from a set of sources an intermediate library (PIC version, to link it into a shared library afterwards), and from the same sources with the same flags a static intermediate library (from non-PIC objects). When i compile a source file, two files are generated, a PIC one and non-PIC one, but only one of them is used for building the intermediate.

If i don't specify -static when linking an intermediate library, i get a library, suitable for linking into shared. If i specify -static when linking an intermediate library, i get a library for my second case.
But unfortunately, not them both at the same time.

Why not have both versions for these intermediate libraries, and when producing final executable or shared library use the needed, depending on the flags - use non-PIC version for executable, if for example -static is specified in its linker flags, and PIC version if we want to build the shared library?





reply via email to

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