major changes to improve toolchain and crossbuild concept, still in devel!
[hdw-linux/hdw-linux.git] / packages / base / binutils / binutils
index ade55d3..c4e77f2 100644 (file)
@@ -22,9 +22,10 @@ if [ "$priority" = "4" ] ; then
                rm -rf $root/tmp/src.binutils
 
                # show new linker to gcc
+               cr="" ; [ "$hdw_crossbuild" != "0" ] && cr=/${s1_prefix}
                SPECFILE="`gcc --print-file specs`"
-       sed -e "s@ /${s1_prefix}/lib/ld-linux.so.2@ /lib/ld-linux.so.2@g" \
-           -e "s@ /${s1_prefix}/lib/ld.so.1@ /lib/ld.so.1@g" \
+       sed -e "s@ /${s1_prefix}/lib/ld-linux.so.2@ $cr/lib/ld-linux.so.2@g" \
+           -e "s@ /${s1_prefix}/lib/ld.so.1@ $cr/lib/ld.so.1@g" \
                        $SPECFILE > tempspecfile
                mv tempspecfile $SPECFILE
                unset SPECFILE