Boost logo

Boost-Build :

From: Andrej van der Zee (mavdzee_at_[hidden])
Date: 2008-06-27 05:15:23


I am having some problems linking on AIX with bjam
using toolset=gcc. In my project I have one executable
and one shared lib. Bjam generates the following
linker command for the executable:

"g++" -o <all-object-files>
 -lrt -g -Wl,-brtl -pthread

Now this results in an executable that does NOT look
for in any other directories than
the relative path

This is clearly not what I want. I found that if I
link the executable manually like this (with
-lspeedo_util and the corresponding -L) it works like

"g++" -L"../util/bin/gcc-4.2.4/debug/threading-multi"
-o <all-object-files> -lspeedo_util -lrt -g -Wl,-brtl

So my guess is that the native AIX linker works
different in this respect from the gcc linker on
Linux. Is there an easy way to rewrite the linker
command in gcc.jam with -L<path-to-lib> and -l<lib>?


Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at Yahoo!

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