[Scratchbox-users] It doesn't search /lib or /usr/lib when using compiler created by crosstool

Matt Hoosier matt.hoosier at gmail.com
Sun Dec 16 23:49:28 EET 2007


On Dec 5, 2007 8:34 AM, thisway.diy <thisway.diy at 163.com> wrote:
>    I use crosstool-0.43 to build a toolchain in scratchbox, with the host-gcc target.
> But it doesn't search the /lib or /usr/lib when linking.
>    Even I add "NATIVE=yes" in binutils-2.15/ld/genscripts.sh, and then re-build the toolchain
> with crosstool again, the question is still the same.
>    I have 'google' for that two days, just find a solution to set the variable GCC_EXEC_PREFIX:
> export GCC_EXEC_PREFIX=/usr/lib//
>    Do somebody have a better way? I am curious why the toolchains pre-builded by scratchbox.org is ok.
>    The toolchain was build with gcc-3.4.5, glibc-2.3.6 and binutils-2.15.

I usually just edit the gcc.specs file living in the
/scratchbox/compilers/<my-toolchain> folder. You can have a look at
the way that the stock toolchains hosted on scratchbox.org use this
file, to add in extra paths for the linker to search.


More information about the Scratchbox-users mailing list