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 SPECFILE="`gcc --print-file specs`"
26 sed -e "s@ /${s1_prefix}/lib/ld-linux.so.2@ /lib/ld-linux.so.2@g" \
27 -e "s@ /${s1_prefix}/lib/ld.so.1@ /lib/ld.so.1@g" \
28 $SPECFILE > tempspecfile
29 mv tempspecfile $SPECFILE
34 if [ "$priority" = "5" ] ; then
35 confopt="$confopt --enable-shared --disable-nls"
36 make_conf="tooldir=$root/usr"
37 install_conf="tooldir=$root/usr"
39 cp ../binutils-$ver/include/libiberty.h \
44 mkdir -p ../binutils-build &&
45 cd ../binutils-build &&
46 ../binutils-${ver}/configure $confopt &&
48 make $install_conf install