wok-next rev 10422

gcc: Replaced $BUILD_HOST with $HOST_SYSTEM.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue May 24 13:45:57 2011 +0000 (2011-05-24)
parents c6b6ce81e57e
children 3c2b3c79f2f3
files gcc/receipt
line diff
     1.1 --- a/gcc/receipt	Tue May 24 13:44:21 2011 +0000
     1.2 +++ b/gcc/receipt	Tue May 24 13:45:57 2011 +0000
     1.3 @@ -29,12 +29,16 @@
     1.4  
     1.5  	report step "Running compilation"
     1.6  
     1.7 +	# Use libiberty.a from binutils.
     1.8 +	sed -i 's/install_to_$(INSTALL_DEST) //' \
     1.9 +		libiberty/Makefile.in || return 1
    1.10 +
    1.11  	# Build it in a separate directory.
    1.12  	mkdir ../gcc-build
    1.13 -	cd ../gcc-build	
    1.14 +	cd ../gcc-build
    1.15  
    1.16  	{ $src/configure \
    1.17 -		--target=$BUILD_HOST \
    1.18 +		--target=$HOST_SYSTEM \
    1.19  		--disable-nls --disable-shared --disable-multilib \
    1.20  		--disable-decimal-float --disable-threads \
    1.21  		--disable-libmudflap --disable-libssp \
    1.22 @@ -46,7 +50,7 @@
    1.23  	} || { report close-bloc; return 1; }
    1.24  
    1.25  	# See LFS for more detais about this.
    1.26 -	ln -s libgcc.a `$BUILD_HOST-gcc -print-libgcc-file-name | \
    1.27 +	ln -s libgcc.a `$HOST_SYSTEM-gcc -print-libgcc-file-name | \
    1.28      		sed 's/libgcc/&_eh/'`
    1.29  	report close-bloc
    1.30  }
    1.31 @@ -85,12 +89,16 @@
    1.32  
    1.33  	report step "Running compilation"
    1.34  
    1.35 +	# Use libiberty.a from binutils.
    1.36 +	sed -i 's/install_to_$(INSTALL_DEST) //' \
    1.37 +		libiberty/Makefile.in || return 1
    1.38 +
    1.39  	# Build it in a separate directory.
    1.40  	mkdir ../gcc-build
    1.41  	cd ../gcc-build
    1.42  
    1.43 -	{ CC="$BUILD_HOST-gcc -B/tools/lib/" \
    1.44 -		AR=$BUILD_HOST-ar RANLIB=$BUILD_HOST-ranlib \
    1.45 +	{ CC="$HOST_SYSTEM-gcc -B/tools/lib/" \
    1.46 +		AR=$HOST_SYSTEM-ar RANLIB=$HOST_SYSTEM-ranlib \
    1.47  		$src/configure \
    1.48  		--with-local-prefix=/tools --enable-clocale=gnu \
    1.49  		--enable-shared --enable-threads=posix \