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:
[snip]
>
> 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
/usr/local/gcc-3.4.1/lib/gcc/i686-pc-linux-gnu/3.4.1/specs
Configured with: ./configure --prefix=/usr/local/gcc-3.4.1
--enable-languages=c++
Thread model: posix
gcc version 3.4.1
/usr/local/gcc-3.4.1/libexec/gcc/i686-pc-linux-gnu/3.4.1/collect2
--eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o
unexpected.exe /usr/lib/crt1.o /usr/lib/crti.o
/usr/local/gcc-3.4.1/lib/gcc/i686-pc-linux-gnu/3.4.1/crtbegin.o
-L/usr/local/gcc-3.4.1/lib/gcc/i686-pc-linux-gnu/3.4.1
-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
/usr/local/gcc-3.4.1/lib/gcc/i686-pc-linux-gnu/3.4.1/crtend.o
/usr/lib/crtn.o
./unexpected.exe
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 acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk