wok diff gcc/receipt @ rev 12267

Up: gcc (4.6.2) Our new compiler :-)
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 12 14:56:44 2012 +0200 (2012-04-12)
parents 18c26403f57c
children 0893b8771990
line diff
     1.1 --- a/gcc/receipt	Sat Dec 10 04:31:37 2011 +0100
     1.2 +++ b/gcc/receipt	Thu Apr 12 14:56:44 2012 +0200
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="gcc"
     1.7 -VERSION="4.5.2"
     1.8 +VERSION="4.6.2"
     1.9  CATEGORY="development"
    1.10  SHORT_DESC="The the GNU Compiler Collection."
    1.11  MAINTAINER="pankso@slitaz.org"
    1.12 @@ -119,7 +119,6 @@
    1.13  {
    1.14  	cd $src
    1.15  
    1.16 -
    1.17  	# SliTaz is a Busybox based OS, why we so small and fast. Using gawk by
    1.18  	# default to build package will not ensure package work with Busybox awk
    1.19  	# and so should NOT be use to cook.
    1.20 @@ -133,8 +132,15 @@
    1.21  	[ "$3" == "--first-pass" ] && opt=$3
    1.22  	
    1.23  	# Use libiberty.a from binutils.
    1.24 -	sed -i 's/install_to_$(INSTALL_DEST) //' \
    1.25 -		libiberty/Makefile.in || return 1
    1.26 +	sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in || return 1
    1.27 +	
    1.28 +	case $ARCH in
    1.29 +		i?86) sed -i 's/^T_CFLAGS =$/& -fomit-frame-pointer/' \
    1.30 +			gcc/Makefile.in ;;
    1.31 +	esac
    1.32 +	
    1.33 +	#sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
    1.34 +	
    1.35  	mkdir -p ../gcc-build && cd ../gcc-build
    1.36  
    1.37  	# This is the default GCC and we want a native build to cross compile after.
    1.38 @@ -183,18 +189,18 @@
    1.39  genpkg_rules()
    1.40  {
    1.41  	mkdir -p  $fs/usr/share
    1.42 -	cp -a $_pkg/usr/bin $fs/usr
    1.43 +	cp -a $install/usr/bin $fs/usr
    1.44  	
    1.45  	# Copy all libs. Remove libgcc_s.so and libstdc++.so they goes in
    1.46  	# the gcc-lib-base package.
    1.47 -	cp -a $_pkg/usr/lib $fs/usr
    1.48 +	cp -a $install/usr/lib $fs/usr
    1.49  	rm -f $fs/usr/lib/libgcc_s.so*
    1.50  	rm -f $fs/usr/lib/libstdc++.so*
    1.51  	rm -f $fs/usr/lib/libgomp.so*
    1.52  	rm -f $fs/usr/lib/libobjc.so*
    1.53  
    1.54  	# Include files.
    1.55 -	cp -a $_pkg/usr/include $fs/usr
    1.56 +	cp -a $install/usr/include $fs/usr
    1.57  	
    1.58  	# Gfortran goes in gfortran package.
    1.59  	rm -f $fs/usr/bin/*gfortran