From f71dc3bd77549744e234243c2a4288ab56724618 Mon Sep 17 00:00:00 2001 From: Lukc Date: Fri, 24 Dec 2010 09:03:56 +0100 Subject: Recette de binutils mise à jour et recette de gcc mise à jour. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gcc/Pkgfile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'gcc/Pkgfile') diff --git a/gcc/Pkgfile b/gcc/Pkgfile index 7026894..19fda52 100644 --- a/gcc/Pkgfile +++ b/gcc/Pkgfile @@ -1,10 +1,14 @@ -description="The GNU Compiler Collection" +description="The GNU Compiler Collection." packager="CRUX System Team " maintainer="Lukc " url="http://$name.gnu.org" -depends=(zlib libmpc) +depends=(binutils zlib libmpc) -name=gcc +if [[ -z ${CROSS_TARGET} ]]; then + name=gcc +else + name=gcc-$CROSS_TARGET +fi version=4.5.1 release=1 source=( @@ -19,6 +23,9 @@ build () mkdir build; cd build; ../$name-$version/configure \ + ${CHOST:+--build=${CHOST}} \ + ${CTARGET:+--host=${CTARGET}} \ + ${CROSS_TRIPLET:+--target=${CROSS_TRIPLET}} \ --prefix=$prefix \ --mandir=$mandir \ --libexecdir=$libdir \ @@ -41,5 +48,5 @@ build () mv $PKG$libdir/$name/*/$version/include-fixed/{limits.h,syslimits.h} $PKG$libdir/$name/*/$version/include/; rm $PKG$libdir/{libiberty.a,libstdc++.so.6.0.14-gdb.py}; #rm -r $PKG$libdir/$name/*/$version/{install-tools,include-fixed}; - sed -i "s|-L$SRC[^ ]* ||g" $PKG$libdir/{libstdc++.la,libsupc++.la} + sed -i "s|-L$SRC[^ ]* ||g" $PKG$libdir/{libstdc++.la,libsupc++.la} || true } -- cgit v1.2.3-70-g09d2