some more adaptions ...
[hdw-linux/hdw-linux.git] / packages / base / binutils / binutils
index ade55d3..c3ee80e 100644 (file)
@@ -2,11 +2,9 @@
 
 # author: hackbard@hackdaworld.dyndns.org
 #
-## [V] 2.15
-# [V] 2.15.91.0.1
+# [V] 2.16.90.0.3
 # [S] 2-4 2-5
-## [D] binutils-2.15.tar.bz2 ftp://ftp.gnu.org/gnu/binutils/
-# [D] binutils-2.15.91.0.1.tar.bz2 http://ftp.kernel.org/pub/linux/devel/binutils/
+# [D] binutils-2.16.90.0.3.tar.bz2 http://ftp.kernel.org/pub/linux/devel/binutils/
 
 libpath="/usr/lib:/lib"
 
@@ -22,9 +20,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