diff options
author | Lukc <lukc@upyum.com> | 2010-12-31 11:07:21 +0100 |
---|---|---|
committer | Lukc <lukc@upyum.com> | 2010-12-31 11:07:21 +0100 |
commit | 91f7c987c26853e777c599731e65222081df3732 (patch) | |
tree | 2883708f56af2b844ec068b55465a918d745b204 /gcc/Pkgfile | |
parent | cb08ae2da7f0161f3a275e4d0f79c23b71211b58 (diff) | |
parent | efebc3001ba009bab4783432cc3c0c2a5e643d6f (diff) | |
download | devel-91f7c987c26853e777c599731e65222081df3732.tar.gz devel-91f7c987c26853e777c599731e65222081df3732.tar.bz2 devel-91f7c987c26853e777c599731e65222081df3732.tar.xz devel-91f7c987c26853e777c599731e65222081df3732.zip |
Merge branch 'master' of ssh://piernov.org/srv/git/devel
Diffstat (limited to 'gcc/Pkgfile')
-rw-r--r-- | gcc/Pkgfile | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/gcc/Pkgfile b/gcc/Pkgfile index 19fda52..56bdb8d 100644 --- a/gcc/Pkgfile +++ b/gcc/Pkgfile @@ -4,12 +4,12 @@ maintainer="Lukc <lukc AT upyum DOT com>" url="http://$name.gnu.org" depends=(binutils zlib libmpc) -if [[ -z ${CROSS_TARGET} ]]; then +if [[ -z ${CROSS_TRIPLET} ]]; then name=gcc else - name=gcc-$CROSS_TARGET + name=gcc-$CROSS_TRIPLET fi -version=4.5.1 +version=4.5.2 release=1 source=( http://ftp.gnu.org/gnu/$name/$name-$version/$name-core-$version.tar.bz2 @@ -19,10 +19,10 @@ source=( ) build () { - patch -d $name-$version -p1 -i $SRC/$name-nocheck-fixincludes.patch; + patch -d gcc-$version -p1 -i $SRC/gcc-nocheck-fixincludes.patch; mkdir build; cd build; - ../$name-$version/configure \ + ../gcc-$version/configure \ ${CHOST:+--build=${CHOST}} \ ${CTARGET:+--host=${CTARGET}} \ ${CROSS_TRIPLET:+--target=${CROSS_TRIPLET}} \ @@ -38,15 +38,19 @@ build () --with-x=no \ --with-system-zlib \ --with-pkgversion="Nutritive"; - make bootstrap; + if [[ -z "${CROSS_TRIPLET}" ]]; then + make bootstrap; + else + make; + fi make -j1 check; make -j1 DESTDIR=$PKG install; mkdir $PKG/lib; ln -sf ..$bindir/cpp $PKG/lib/cpp; - ln -sf $name $PKG$bindir/cc; + ln -sf gcc $PKG$bindir/cc; ln -sf g++ $PKG$bindir/c++; - mv $PKG$libdir/$name/*/$version/include-fixed/{limits.h,syslimits.h} $PKG$libdir/$name/*/$version/include/; + mv $PKG$libdir/gcc/*/$version/include-fixed/{limits.h,syslimits.h} $PKG$libdir/gcc/*/$version/include/; rm $PKG$libdir/{libiberty.a,libstdc++.so.6.0.14-gdb.py}; - #rm -r $PKG$libdir/$name/*/$version/{install-tools,include-fixed}; + #rm -r $PKG$libdir/gcc/*/$version/{install-tools,include-fixed}; sed -i "s|-L$SRC[^ ]* ||g" $PKG$libdir/{libstdc++.la,libsupc++.la} || true } |