1 # hdw - linux binutils package
3 # author: hackbard@hackdaworld.dyndns.org
8 ## [D] binutils-2.15.tar.bz2 ftp://ftp.gnu.org/gnu/binutils/
9 # [D] binutils-2.15.91.0.1.tar.bz2 http://ftp.kernel.org/pub/linux/devel/binutils/
11 libpath="/usr/lib:/lib"
13 if [ "$priority" = "4" ] ; then
14 flist_path="$flist_path ${s1_prefix}/"
15 flist_pruned="$flist_pruned|specs"
18 # install binutils linking against new libc
19 cd $root/tmp/src.binutils/binutils-build
20 make -C ld INSTALL=/${s1_prefix}/bin/install install
22 rm -rf $root/tmp/src.binutils
24 # show new linker to gcc
25 cr="" ; [ "$hdw_crossbuild" != "0" ] && cr=/${s1_prefix}
26 SPECFILE="`gcc --print-file specs`"
27 sed -e "s@ /${s1_prefix}/lib/ld-linux.so.2@ $cr/lib/ld-linux.so.2@g" \
28 -e "s@ /${s1_prefix}/lib/ld.so.1@ $cr/lib/ld.so.1@g" \
29 $SPECFILE > tempspecfile
30 mv tempspecfile $SPECFILE
35 if [ "$priority" = "5" ] ; then
36 confopt="$confopt --enable-shared --disable-nls"
37 make_conf="tooldir=$root/usr"
38 install_conf="tooldir=$root/usr"
40 cp ../binutils-$ver/include/libiberty.h \
45 mkdir -p ../binutils-build &&
46 cd ../binutils-build &&
47 ../binutils-${ver}/configure $confopt &&
49 make $install_conf install