Boost logo

Boost-Build :

From: Larry Evans (cppljevans_at_[hidden])
Date: 2004-09-05 10:56:39

On 09/05/2004 08:50 AM, Larry Evans wrote:
> link.log showed reference of:
> /usr/local/gcc-3.4.1/libexec/gcc/i686-pc-linux-gnu/3.4.1/collect2
> but then:
> 2859 access (
> "/usr/local/gcc-3.4.1/lib/gcc/i686-pc-linux-gnu/3.4.1/../../../../i686-pc-linux-gnu/lib/crt1.o"
> , R_OK) = -1 ENOENT (No such file or directory)
> ...
> 2859 access("/usr/lib/crt1.o", R_OK) = 0
> which looked suspicious since I would have thought it would find crt1.o
> under usr/local/gcc-3.4.1/lib. However, I saw no install for crt1.o in

The following link and command:

/usr/local/gcc-3.4.1/bin/g++ -v -Wl,--rpath
-Wl,/usr/local/gcc-3.4.1/lib unexpected.o -o unexpected.exe
Reading specs from
Configured with: ./configure --prefix=/usr/local/gcc-3.4.1
Thread model: posix
gcc version 3.4.1
--eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ -o
unexpected.exe /usr/lib/crt1.o /usr/lib/crti.o
-L/usr/local/gcc-3.4.1/lib/gcc/i686-pc-linux-gnu/3.4.1/../../.. --rpath
/usr/local/gcc-3.4.1/lib unexpected.o -lstdc++ -lm -lgcc_s -lgcc -lc
-lgcc_s -lgcc
terminate called without an active exception
make: *** [run] Aborted

indicates just adding:

Wl,--rpath -Wl,/usr/local/gcc-3.4.1/lib

to the link command works. How can gcc.jam be modified to do this?


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