summaryrefslogtreecommitdiffstats
path: root/gcc/Pkgfile.old
diff options
context:
space:
mode:
authorLukc <lukc@upyum.com>2010-12-11 19:15:23 +0100
committerLukc <lukc@upyum.com>2010-12-11 19:15:35 +0100
commit6d908a38e05b9d4135c65d23114a5874215b5bb8 (patch)
treeb5e6da6d95b9a1235d82032b509b80483a886ff5 /gcc/Pkgfile.old
downloadbase-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.gz
base-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.bz2
base-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.xz
base-6d908a38e05b9d4135c65d23114a5874215b5bb8.zip
Engagement initial.
Diffstat (limited to 'gcc/Pkgfile.old')
-rw-r--r--gcc/Pkgfile.old47
1 files changed, 47 insertions, 0 deletions
diff --git a/gcc/Pkgfile.old b/gcc/Pkgfile.old
new file mode 100644
index 0000000..d33b031
--- /dev/null
+++ b/gcc/Pkgfile.old
@@ -0,0 +1,47 @@
+# Description: The GNU Compiler Collection
+# URL: http://gcc.gnu.org
+# Maintainer: CRUX System Team, core-ports at crux dot nu
+# Depends on: zlib libmpc
+
+name=gcc
+version=4.5.1
+release=1
+source=(http://ftp.gnu.org/gnu/gcc/$name-$version/$name-{core,g++,objc}-$version.tar.bz2
+ $name-nocheck-fixincludes.patch)
+
+
+build() {
+ patch -d $name-$version -p1 -i $SRC/$name-nocheck-fixincludes.patch
+
+ mkdir build
+ cd build
+ ../$name-$version/configure --prefix=/usr \
+ --mandir=/usr/man \
+ --libexecdir=/usr/lib \
+ --enable-languages=c,c++,objc \
+ --enable-threads=posix \
+ --enable-__cxa_atexit \
+ --enable-clocale=gnu \
+ --enable-shared \
+ --disable-nls \
+ --with-x=no \
+ --with-system-zlib \
+ --with-pkgversion="CRUX"
+ make bootstrap
+ make -j1 check
+ make -j1 DESTDIR=$PKG install
+
+ mkdir $PKG/lib
+ ln -sf ../usr/bin/cpp $PKG/lib/cpp
+ ln -sf gcc $PKG/usr/bin/cc
+ ln -sf g++ $PKG/usr/bin/c++
+
+ mv $PKG/usr/lib/gcc/*/$version/include-fixed/{limits.h,syslimits.h} $PKG/usr/lib/gcc/*/$version/include/
+
+ rm $PKG/usr/lib/{libiberty.a,libstdc++.so.6.0.14-gdb.py}
+ rm -r $PKG/usr/share
+ rm -r $PKG/usr/bin/*-linux-gnu-*
+ rm -r $PKG/usr/lib/gcc/*/$version/{install-tools,include-fixed}
+
+ sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/{libstdc++.la,libsupc++.la}
+}