Mercurial > vanilla
diff gnu/binutils/binutils.sh @ 1222:325631424c65
misc: bring back build function
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 27 Oct 2021 11:32:16 +0200 |
parents | a47aaf9743a0 |
children | 9867e578b1a9 |
line wrap: on
line diff
--- a/gnu/binutils/binutils.sh Fri Oct 15 16:07:30 2021 +0200 +++ b/gnu/binutils/binutils.sh Wed Oct 27 11:32:16 2021 +0200 @@ -48,32 +48,35 @@ with_nls="--disable-nls" fi -rm -rf $PKGNAME-$PKGVERSION -tar xvf $PKGNAME-$PKGVERSION.tar.xz -cd $PKGNAME-$PKGVERSION +build() +{ + rm -rf $PKGNAME-$PKGVERSION + tar xvf $PKGNAME-$PKGVERSION.tar.xz + cd $PKGNAME-$PKGVERSION -CFLAGS="$CFLAGS" \ -CXXFLAGS="$CXXFLAGS" \ -CC="$CC" \ -CXX="$CXX" \ -LDFLAGS="$LDFLAGS" \ -LIBS="$LIBS" \ -./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --target=$CTARGET \ - --prefix=/usr \ - --exec-prefix=/libexec/binutils \ - --bindir=/bin \ - --sbindir=/bin \ - --disable-werror \ - --enable-shared \ - --with-system-zlib \ - $with_nls \ - $with_gdb -make -make install DESTDIR=$DESTDIR -find $DESTDIR -type f -name "*.la" -delete + CFLAGS="$CFLAGS" \ + CXXFLAGS="$CXXFLAGS" \ + CC="$CC" \ + CXX="$CXX" \ + LDFLAGS="$LDFLAGS" \ + LIBS="$LIBS" \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --target=$CTARGET \ + --prefix= \ + --exec-prefix=/libexec/binutils \ + --bindir=/bin \ + --sbindir=/bin \ + --disable-werror \ + --enable-shared \ + --with-system-zlib \ + $with_nls \ + $with_gdb + make + make install DESTDIR=$DESTDIR + find $DESTDIR -type f -name "*.la" -delete -cd .. -rm -rf $PKGNAME-$PKGVERSION + cd .. + rm -rf $PKGNAME-$PKGVERSION +}