Boost logo

Boost-Build :

Subject: Re: [Boost-build] specifying libraries on the link line, was "incorrect library names embedded on hp-ux ia64"
From: Jim Gallagher (jim_at_[hidden])
Date: 2009-06-11 15:02:48


I have been experimenting, and I have some more info to share. Back to
my example
with libfoo, libbar and libbaz, where libbar depends on libfoo and
libbaz depends
on libbar.

The link line generated by boost-build did not work:
    aCC -AA -b -g -Wl,+h, -o "bin/acc/debug/"
"bin/acc/debug/baz.o" "../bar/bin/acc/debug/"
ld: Can't find dependent library ""
Fatal error.

Rearranging for a manual test does not work either:
    aCC -AA -b -g -Wl,+h, -o "bin/acc/debug/"
"bin/acc/debug/baz.o" "../foo/bin/acc/debug/"
ld: Can't find dependent library ""
Fatal error.

However, if I add a search path using -L, it will find libfoo:
    aCC -AA -b -g -Wl,+h, -o "bin/acc/debug/"
"bin/acc/debug/baz.o" -L../foo/bin/acc/debug

So, it appears that on hp-ux, we must use the typical -L linker search
mechanism. Is this something that I may be able to fix with some
guidance, or do you think it is pretty involved? I am very much a
novice regarding much of what is happening under the hood.


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at