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?
_______________________________________________
Bug-libtool mailing list
Bug-libtool@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-libtool