compile failure due to undefined symbol
Maciej W. Rozycki
macro@linux-mips.org
Tue Oct 2 17:52:00 GMT 2007
On Tue, 2 Oct 2007, Nick Clifton wrote:
> OK, so the patch works just as well without the RPATH entry being added to the
> libopcodes library, so here is a revised version for people to ponder.
[...]
> ! *)
> ! SHARED_LDFLAGS="-Wl,-z,defs"
> ! SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so"
> ! SHARED_DEPENDENCIES="`pwd`/../bfd/.libs/libbfd.so"
> ! ;;
Have you considered using "`pwd`/../bfd/libbfd.la" instead? It should
avoid much of the hassle, and for whoever's sake, people please do use
libtool rather than trying to circumvent it! It has been designed to
handle such cases. You do not even have to have it as a shared dependency
-- putting "libbfd.la" permanently on the list of dependencies for
libopcodes will just work, whether shared or archive and libtool will sort
out all the boring details.
Maciej
More information about the Binutils
mailing list