wok-next diff gcc49/receipt @ rev 20853

Up xgalaga++; fix build: vzctl, vzquota, w3m
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Jun 24 19:03:37 2018 +0300 (2018-06-24)
parents c3a368c0cddb
children d958fec46c9f
line diff
     1.1 --- a/gcc49/receipt	Fri Mar 02 03:33:54 2018 +0200
     1.2 +++ b/gcc49/receipt	Sun Jun 24 19:03:37 2018 +0300
     1.3 @@ -19,7 +19,11 @@
     1.4  SPLIT="gcc49-lib-base"
     1.5  
     1.6  compile_rules() {
     1.7 -	ARCH_ARGS="--with-tune=$ARCH"
     1.8 +	case $ARCH in
     1.9 +		arm*)   ARCH_ARGS="--with-tune=armv6";;
    1.10 +		i?86)   ARCH_ARGS="--with-tune=$ARCH";;
    1.11 +		x86_64) ARCH_ARGS="--with-tune=nocona";;
    1.12 +	esac
    1.13  	pkgversion="SliTaz"
    1.14  	languages="c,c++"
    1.15  
    1.16 @@ -30,7 +34,8 @@
    1.17  
    1.18  	sed -i 's/^T_CFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in
    1.19  
    1.20 -	mkdir -p ../gcc-build && cd ../gcc-build
    1.21 +	mkdir build
    1.22 +	cd    build
    1.23  
    1.24  	$src/configure \
    1.25  		--libexecdir=/usr/lib \
    1.26 @@ -47,7 +52,9 @@
    1.27  		--program-suffix=-49 \
    1.28  		--libdir=/usr/libgcc49 \
    1.29  		--with-pkgversion="$pkgversion" \
    1.30 -		${CONFIGURE_ARGS} ${ARCH_ARGS} &&
    1.31 +		--disable-multilib \
    1.32 +		$ARCH_ARGS \
    1.33 +		$CONFIGURE_ARGS &&
    1.34  	make && make install
    1.35  }
    1.36