initial checkin of new hdw-linux development cvs repository
[hdw-linux/hdw-linux.git] / packages / base / binutils / binutils
1 # hdw - linux binutils package
2
3 # author: hackbard@hackdaworld.dyndns.org
4 #
5 ## [V] 2.15
6 # [V] 2.15.91.0.1
7 # [S] 2-4 2-5
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/
10
11 libpath="/usr/lib:/lib"
12
13 if [ "$priority" = "4" ] ; then
14         flist_path="$flist_path ${s1_prefix}/"
15         flist_pruned="$flist_pruned|specs"
16         custmain=1
17         custmain()      {
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
21                 cd -
22                 rm -rf $root/tmp/src.binutils
23
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
30                 unset SPECFILE
31                         }
32 fi
33
34 if [ "$priority" = "5" ] ; then
35         confopt="$confopt --enable-shared --disable-nls"
36         make_conf="tooldir=$root/usr"
37         install_conf="tooldir=$root/usr"
38         post_install()  {
39                 cp ../binutils-$ver/include/libiberty.h \
40                                 $prefix/include
41                         }
42
43         build_main()    {
44                 mkdir -p ../binutils-build &&
45                 cd ../binutils-build &&
46                 ../binutils-${ver}/configure $confopt &&
47                 make $make_conf &&
48                 make $install_conf install
49                         }
50 fi