wok-current diff mingw32-binutils/receipt @ rev 7782
busybox: no init terminal type
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 23 17:55:50 2010 +0100 (2010-12-23) |
parents | 05b5a901936b |
children | d1768332cee0 |
line diff
1.1 --- a/mingw32-binutils/receipt Thu Sep 03 21:46:00 2009 +0200 1.2 +++ b/mingw32-binutils/receipt Thu Dec 23 17:55:50 2010 +0100 1.3 @@ -11,7 +11,11 @@ 1.4 TARBALL="$SOURCE-$VERSION-src.tar.gz" 1.5 WEB_SITE="http://www.mingw.org/" 1.6 WGET_URL="$SF_MIRROR/mingw/$TARBALL" 1.7 -MINGW32_TARGET="i586-pc-mingw32" 1.8 + 1.9 +# Configuration only needs included if we're in the build/wok environment 1.10 +if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then 1.11 + . $WOK/mingw32-toolchain/stuff/mingw32.conf 1.12 +fi 1.13 1.14 # Rules to configure and make the package. 1.15 compile_rules() 1.16 @@ -21,7 +25,7 @@ 1.17 --prefix=/usr \ 1.18 --infodir=/usr/share/info \ 1.19 --mandir=/usr/share/man \ 1.20 - --with-sysroot=/usr/lib/$MINGW32_TARGET \ 1.21 + --with-sysroot=$MINGW32_ROOT \ 1.22 --disable-shared \ 1.23 --disable-debug \ 1.24 --target=$MINGW32_TARGET \ 1.25 @@ -33,11 +37,13 @@ 1.26 # Rules to gen a SliTaz package suitable for Tazpkg. 1.27 genpkg_rules() 1.28 { 1.29 - mkdir -p $fs/usr/lib 1.30 + mkdir -p $fs/usr/lib $fs$MINGW32_ROOT 1.31 cp -a $_pkg/usr/bin $fs/usr 1.32 - cp -a $_pkg/usr/lib/$MINGW32_TARGET $fs/usr/lib 1.33 + cp -a $_pkg$MINGW32_ROOT/* $fs$MINGW32_ROOT 1.34 # do not need to copy lib/libiberty.a 1.35 + 1.36 + strip -s $fs$MINGW32_ROOT/bin/* 1.37 1.38 #Create a symlink for --with-sysroot 1.39 - ( cd $fs/usr/lib/$MINGW32_TARGET && ln -s . usr ) 1.40 + ln -s . $fs$MINGW32_ROOT/usr 1.41 }