wok-current rev 12710
cross-arm-gcc: improve receipt, use --libexecdir= and --disable-threads
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri May 04 15:59:16 2012 +0200 (2012-05-04) |
parents | 0d5b39a0506a |
children | d57104792abb |
files | cross-arm-gcc/receipt |
line diff
1.1 --- a/cross-arm-gcc/receipt Fri May 04 16:52:18 2012 +0300 1.2 +++ b/cross-arm-gcc/receipt Fri May 04 15:59:16 2012 +0200 1.3 @@ -10,8 +10,7 @@ 1.4 TARBALL="$SOURCE-$VERSION.tar.bz2" 1.5 WGET_URL="$GNU_MIRROR/gcc/gcc-$VERSION/$TARBALL" 1.6 1.7 -DEPENDS="mpc-library elfutils linux-arm-api-headers cross-arm-binutils \ 1.8 -cross-arm-glibc" 1.9 +DEPENDS="mpc-library elfutils linux-arm-api-headers cross-arm-binutils" 1.10 BUILD_DEPENDS="linux-arm-api-headers cross-arm-binutils gmp gmp-dev \ 1.11 mpfr mpfr-dev mpc-library elfutils-dev" 1.12 1.13 @@ -44,6 +43,7 @@ 1.14 echo "cook: configure GCC for: cross toolchain first pass" 1.15 $src/configure \ 1.16 --prefix=$CROSS_PREFIX \ 1.17 + --libexec=$CROSS_PREFIX/lib \ 1.18 --disable-shared \ 1.19 --disable-threads \ 1.20 --without-headers \ 1.21 @@ -58,28 +58,44 @@ 1.22 *) 1.23 # Used to produce a full featured ARM GCC cross compiler. 1.24 echo "cook: configure GCC for: final/full cross compiler" 1.25 - # cross-arm-toolchain package will install glibc 1.26 - #tazpkg -i /home/slitaz/packages/cross-arm-glibc-2.14.1.tazpkg 1.27 + 1.28 + # The cross-arm-toolchain package will install glibc. We can't 1.29 + # have it in DEPENDS since glibc is not build when we compile 1.30 + # GCC --first-pass 1.31 + if [ ! "/var/lib/tazpkg/installed/cross-arm-glibc" ]; then 1.32 + tazpkg -i /home/slitaz/packages/cross-arm-glibc-2.14.1.tazpkg 1.33 + fi 1.34 + 1.35 + # This will fix GCC final build since we dont use --with-sysroot=. 1.36 + # Without that we go errors such as: cannot find crtn.o 1.37 + echo "cook: moving ldscripts to: ${CROSS_PREFIX}/lib" 1.38 + cd ${CROSS_PREFIX}/$CROSS_TARGET 1.39 + mv lib/ldscripts ../lib 1.40 + rm -rf lib 1.41 + echo "cook: creating symlinks in: ${CROSS_PREFIX}/$CROSS_TARGET" 1.42 + ln -s ../lib lib 1.43 + ln -s ../include include 1.44 + 1.45 + cd $WOK/$PACKAGE/source/build 1.46 $src/configure \ 1.47 --prefix=$CROSS_PREFIX \ 1.48 + --libexec=$CROSS_PREFIX/lib \ 1.49 --enable-shared \ 1.50 --enable-languages=c,c++ \ 1.51 --enable-c99 \ 1.52 --enable-long-long \ 1.53 --enable-__cxa_atexit \ 1.54 + --disable-threads \ 1.55 $CROSS_TRIPLET && 1.56 make && make install ;; 1.57 esac 1.58 1.59 # Some configure options I have tested (pankso) 1.60 - #--libexec=/usr/lib 1.61 + #--libexec=$CROSS_PREFIX/lib 1.62 #--disable-threads 1.63 #--disable-checking 1.64 #--disable-shared 1.65 #--disable-nls 1.66 - #--with-as=/usr/bin/${CROSS_TARGET}-as 1.67 - #--with-ld=/usr/bin/${CROSS_TARGET}-ld 1.68 - #--enable-languages=c,c++ 1.69 #--enable-multilib 1.70 #--enable-addons 1.71 #--enable-softfloat