On Dec 5, 2007 8:34 AM, thisway.diy <[EMAIL PROTECTED]> 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. _______________________________________________ Scratchbox-users mailing list Scratchbox-users@lists.scratchbox.org http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users