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