Erik-Jan wrote:
- sed/patch the source (gcc/gcc.c) so the hard-codes /usr/lib gets
replaced by /tools/lib:
sed -i "/standard_exec_prefix_/s%/usr%/tools%g" gcc/gcc.c
My preference would be the sed/patch, because it removes all the
hardcoded host-dirs from gcc's search-path.
For consistency, make
Erik-Jan wrote:
Yo Erik-Jan :-) Good to hear from you again ;-)
>As you can see, in the first case it uses libgcc_s.so from the host,
>in
>the second case it uses the newly build libgcc_s.so.
Good catch... guess I really should do some more host=target builds
from ix86... Will check what
Erik-Jan wrote:
This is the output:
attempt to open
/home/lfs/cross-tools/bin/../lib/gcc/i686-pc-linux-gnu/3.4.3/libgcc_s.so
failed
attempt to open /home/lfs/cross-tools/bin/../lib/gcc/libgcc_s.so failed
attempt to open /cross-tools/lib/gcc/i686-pc-linux-gnu/3.4.3/libgcc_s.so
failed
attempt to o