comparison gnu/binutils/binutils.sh @ 1216:6710613b88b9

misc: remove build function
author David Demelier <markand@malikania.fr>
date Wed, 29 Sep 2021 13:49:32 +0200
parents 297b5eef115e
children 57dc83a39b13
comparison
equal deleted inserted replaced
1215:3214f7fed454 1216:6710613b88b9
46 with_nls="--enable-nls" 46 with_nls="--enable-nls"
47 else 47 else
48 with_nls="--disable-nls" 48 with_nls="--disable-nls"
49 fi 49 fi
50 50
51 build() 51 rm -rf $PKGNAME-$PKGVERSION
52 { 52 tar xvf $PKGNAME-$PKGVERSION.tar.xz
53 rm -rf $PKGNAME-$PKGVERSION 53 cd $PKGNAME-$PKGVERSION
54 tar xvf $PKGNAME-$PKGVERSION.tar.xz
55 cd $PKGNAME-$PKGVERSION
56 54
57 CFLAGS="$CFLAGS" \ 55 CFLAGS="$CFLAGS" \
58 CXXFLAGS="$CXXFLAGS" \ 56 CXXFLAGS="$CXXFLAGS" \
59 CC="$CC" \ 57 CC="$CC" \
60 CXX="$CXX" \ 58 CXX="$CXX" \
61 LDFLAGS="$LDFLAGS" \ 59 LDFLAGS="$LDFLAGS" \
62 LIBS="$LIBS" \ 60 LIBS="$LIBS" \
63 ./configure \ 61 ./configure \
64 --build=$CBUILD \ 62 --build=$CBUILD \
65 --host=$CHOST \ 63 --host=$CHOST \
66 --target=$CTARGET \ 64 --target=$CTARGET \
67 --prefix= \ 65 --prefix= \
68 --exec-prefix=/libexec/binutils \ 66 --exec-prefix=/libexec/binutils \
69 --bindir=/bin \ 67 --bindir=/bin \
70 --sbindir=/bin \ 68 --sbindir=/bin \
71 --disable-werror \ 69 --disable-werror \
72 --enable-shared \ 70 --enable-shared \
73 --with-system-zlib \ 71 --with-system-zlib \
74 $with_nls \ 72 $with_nls \
75 $with_gdb 73 $with_gdb
76 make 74 make
77 make install DESTDIR=$DESTDIR 75 make install DESTDIR=$DESTDIR
78 find $DESTDIR -type f -name "*.la" -delete 76 find $DESTDIR -type f -name "*.la" -delete
79 77
80 cd .. 78 cd ..
81 rm -rf $PKGNAME-$PKGVERSION 79 rm -rf $PKGNAME-$PKGVERSION
82 }