[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lazy symbol binding failed - on MacOSX 10.7 and 10.8
From: |
Peter Johansson |
Subject: |
Re: lazy symbol binding failed - on MacOSX 10.7 and 10.8 |
Date: |
Mon, 18 Mar 2013 21:30:12 +1000 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 |
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