This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: compile failure due to undefined symbol


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]