On 3/18/13 8:39 PM, Satz Klauer wrote:
This line looks a bit strange to me:
libtool: link: g++ -g -O2 -Wl,-whole-archive -Wl,-no-whole-archive -o
.libs/baz baz.o -Wl,-bind_at_load ../foo/libfoo.a
../bar/.libs/libbar.dylib
That looks strange indeed. Is libtool shuffling around the order of
commandline?
g++ looks like some GCC-type compiler, so GNU-specifics should not be
a problem!?
The compiler is GCC 4.0.1 but the linker is from Apple. And I cannot
find the option in Apple ld manual:
https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/ld.1.html
Nevertheless I don't know what a GNU-compiler would say
when you have a statement
-Wl,-whole-archive -Wl,-no-whole-archive
with no libraries to be linked in between...
Even if I try command manually without autotools I get error
g++ -o baz baz.o ../bar/.libs/libbar.dylib -Wl,whole-archive
../foo/libfoo.a -Wl,-no-whole-archive
/usr/bin/ld: unknown flag: -no-whole-archive
Cheers,
Peter
--
Peter Johansson
_______________________________________________
https://lists.gnu.org/mailman/listinfo/libtool