wok-current rev 17846
gcc49: remove gfortran & objc
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Mar 24 09:31:33 2015 +0100 (2015-03-24) |
parents | 09581cbfaf3e |
children | 7d5789c51e7e |
files | gcc49/receipt llvm/receipt |
line diff
1.1 --- a/gcc49/receipt Tue Mar 24 08:43:01 2015 +0100 1.2 +++ b/gcc49/receipt Tue Mar 24 09:31:33 2015 +0100 1.3 @@ -10,8 +10,7 @@ 1.4 TARBALL="$SOURCE-$VERSION.tar.bz2" 1.5 WEB_SITE="http://gcc.gnu.org/" 1.6 WGET_URL="ftp://gcc.gnu.org/pub/gcc/releases/gcc-$VERSION/$TARBALL" 1.7 -TAGS="compiler C" 1.8 -#HOST_ARCH="i486 arm" 1.9 +TAGS="compiler C C++" 1.10 1.11 # We need gawk since busybox awk is not sufficient. We have BUILD_DEPENDS 1.12 # for cookutils that are not used by tazwok/cook-toolchain since it install 1.13 @@ -19,75 +18,36 @@ 1.14 DEPENDS="binutils libgomp libobjc gcc-lib-base mpc-library elfutils" 1.15 BUILD_DEPENDS="mpc-library mpfr-dev gmp-dev elfutils-dev" 1.16 1.17 -# Handle cross compilation (native i486/ARM gcc) 1.18 -case "$ARCH" in 1.19 - i?86) 1.20 - ARCH_ARGS="--with-tune=$ARCH" 1.21 - pkgversion="SliTaz" 1.22 - languages="c,c++,objc,fortran" ;; 1.23 - arm*) 1.24 - pkgversion="SliTaz ARM" 1.25 - languages="c,c++" ;; 1.26 -esac 1.27 - 1.28 # Rules to configure and make the package. 1.29 compile_rules() 1.30 { 1.31 - # Package slitaz-toolchain use 'cook --options' when rebuilding 1.32 - # the full SliTaz toolchain. 1.33 - [ "$2" == "--first-pass" ] && opt=$2 1.34 - [ "$3" == "--first-pass" ] && opt=$3 1.35 + ARCH_ARGS="--with-tune=$ARCH" 1.36 + pkgversion="SliTaz" 1.37 + languages="c,c++" 1.38 1.39 # Use libiberty.a from binutils. 1.40 sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in || return 1 1.41 1.42 - case "$ARCH" in 1.43 - i?86) sed -i 's/^T_CFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in ;; 1.44 - esac 1.45 - 1.46 - #sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in 1.47 + sed -i 's/^T_CFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in 1.48 1.49 mkdir -p ../gcc-build && cd ../gcc-build 1.50 1.51 - # This is the default GCC and we want a native build to cross compile after. 1.52 - # SliTaz target i486 host so we need a native i486 build for GCC. 1.53 - case "$opt" in 1.54 - --first-pass) 1.55 - # Used by slitaz-toolchain when rebuilding the full toolchain. 1.56 - echo "cook: configure GCC for: toolchain first pass" 1.57 - $src/configure \ 1.58 - --libexecdir=/usr/lib \ 1.59 - --disable-nls \ 1.60 - --enable-shared \ 1.61 - --enable-languages=c,c++ \ 1.62 - --disable-libstdcxx-pch \ 1.63 - --enable-__cxa_atexit \ 1.64 - --enable-clocale=gnu \ 1.65 - --enable-threads=posix \ 1.66 - --disable-bootstrap \ 1.67 - --program-suffix=-49 \ 1.68 - ${CONFIGURE_ARGS} && 1.69 - make && make install ;; 1.70 - *) 1.71 - # Used by default to produce a full featured X86 GCC compiler. 1.72 - echo "cook: configure GCC for: final/full build" 1.73 - $src/configure \ 1.74 - --libexecdir=/usr/lib \ 1.75 - --enable-nls \ 1.76 - --enable-languages=${languages} \ 1.77 - --enable-shared \ 1.78 - --with-system-zlib \ 1.79 - --enable-clocale=gnu \ 1.80 - --enable-objc-gc \ 1.81 - --enable-__cxa_atexit \ 1.82 - --enable-lto \ 1.83 - --enable-threads=posix \ 1.84 - --disable-bootstrap \ 1.85 - --program-suffix=-49 \ 1.86 - --with-pkgversion="$pkgversion" \ 1.87 - ${CONFIGURE_ARGS} ${ARCH_ARGS} && 1.88 - make && make install ;; 1.89 - esac 1.90 + $src/configure \ 1.91 + --libexecdir=/usr/lib \ 1.92 + --enable-nls \ 1.93 + --enable-languages=${languages} \ 1.94 + --enable-shared \ 1.95 + --with-system-zlib \ 1.96 + --enable-clocale=gnu \ 1.97 + --enable-objc-gc \ 1.98 + --enable-__cxa_atexit \ 1.99 + --enable-lto \ 1.100 + --enable-threads=posix \ 1.101 + --disable-bootstrap \ 1.102 + --program-suffix=-49 \ 1.103 + --with-pkgversion="$pkgversion" \ 1.104 + ${CONFIGURE_ARGS} ${ARCH_ARGS} && 1.105 + make && make install 1.106 } 1.107 1.108 # Rules to gen a SliTaz package suitable for Tazpkg. 1.109 @@ -96,38 +56,13 @@ 1.110 mkdir -p $fs/usr/share 1.111 cp -a $install/usr/bin $fs/usr 1.112 1.113 - # Copy all libs. Remove libgcc_s.so and libstdc++.so they goes in 1.114 - # the gcc-lib-base package. 1.115 + # Copy all libs. 1.116 cp -a $install/usr/lib $fs/usr 1.117 - rm -f $fs/usr/lib/libgcc_s.so* 1.118 - rm -f $fs/usr/lib/libstdc++.so* 1.119 - rm -f $fs/usr/lib/libgomp.so* 1.120 - rm -f $fs/usr/lib/libobjc.so* 1.121 1.122 # Include files. 1.123 cp -a $install/usr/include $fs/usr 1.124 1.125 - # Gfortran goes in gfortran package. 1.126 - rm -f $fs/usr/bin/*gfortran 1.127 - rm -f $fs/usr/lib/libgfortran* 1.128 - rm -f $fs/usr/lib/gcc/*/$VERSION/libgfortran* 1.129 - rm -rf $fs/usr/lib/gcc/*/$VERSION/f* 1.130 - 1.131 # Remove build directory. 1.132 rm -rf $WOK/$PACKAGE/source/$PACKAGE-build 1.133 rm -rf $WOK/$PACKAGE/$PACKAGE-build 1.134 } 1.135 - 1.136 -# Post install commands for Tazpkg. 1.137 -post_install() 1.138 -{ 1.139 - local root 1.140 - root=$1 1.141 - echo "Processing post-install commands..." 1.142 - if [ ! -f "$root/lib/cpp" ]; then 1.143 - ln -s ../usr/bin/cpp $root/lib 1.144 - fi 1.145 - if [ ! -f "$root/usr/bin/cc" ]; then 1.146 - ln -s gcc $root/usr/bin/cc 1.147 - fi 1.148 -}
2.1 --- a/llvm/receipt Tue Mar 24 08:43:01 2015 +0100 2.2 +++ b/llvm/receipt Tue Mar 24 09:31:33 2015 +0100 2.3 @@ -16,8 +16,8 @@ 2.4 # Rules to configure and make the package. 2.5 compile_rules() 2.6 { 2.7 - export CC="gcc-49" 2.8 - ./configure --prefix=/usr --sysconfdir=/etc \ 2.9 + ./configure CC=gcc-49 CXX=gcc-49 \ 2.10 + --prefix=/usr --sysconfdir=/etc \ 2.11 --enable-libffi \ 2.12 --enable-optimized \ 2.13 --enable-shared \ 2.14 @@ -25,7 +25,6 @@ 2.15 --disable-assertions \ 2.16 --disable-debug-runtime \ 2.17 --disable-expensive-checks \ 2.18 - --disable-compiler-version-checks \ 2.19 $CONFIGURE_ARGS && 2.20 make && make DESTDIR=$DESTDIR install 2.21 }