2006-02-23 16:26:10 +01:00
|
|
|
|
# Description: The GNU Compiler Collection
|
|
|
|
|
# URL: http://gcc.gnu.org
|
2006-11-20 13:08:00 +01:00
|
|
|
|
# Packager: Per Lid<69>n, core-ports at crux dot nu
|
|
|
|
|
# Maintainer: Johannes Winkelmann, jw at smts dot ch
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
|
|
name=gcc
|
2006-11-20 13:08:00 +01:00
|
|
|
|
version=4.1.1
|
|
|
|
|
release=1
|
|
|
|
|
source=(ftp://sources.redhat.com/pub/gcc/releases/$name-$version/$name-{core,g++,objc}-$version.tar.bz2
|
|
|
|
|
$name-$version-nocheck-fixincludes.patch
|
2006-03-16 17:26:09 +01:00
|
|
|
|
$name-$version-fixinc.patch)
|
2006-03-15 20:00:12 +01:00
|
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
|
build() {
|
2006-03-15 23:55:44 +01:00
|
|
|
|
patch -d $name-$version -p1 < $SRC/$name-$version-nocheck-fixincludes.patch
|
2006-03-16 17:26:09 +01:00
|
|
|
|
patch -d $name-$version -p1 < $SRC/$name-$version-fixinc.patch
|
2006-03-15 23:55:44 +01:00
|
|
|
|
|
2006-11-20 13:08:00 +01:00
|
|
|
|
sed -i -e 's|VERSUFFIX ""|VERSUFFIX " (CRUX)"|' \
|
|
|
|
|
$name-$version/$name/version.c
|
|
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
|
mkdir build
|
|
|
|
|
cd build
|
|
|
|
|
../$name-$version/configure --prefix=/usr \
|
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
|
--enable-languages=c,c++,objc \
|
|
|
|
|
--enable-threads=posix \
|
|
|
|
|
--enable-__cxa_atexit \
|
|
|
|
|
--enable-clocale=gnu \
|
|
|
|
|
--enable-shared \
|
2006-02-23 18:29:54 +01:00
|
|
|
|
--disable-nls \
|
|
|
|
|
--with-x=no
|
2006-02-23 16:26:10 +01:00
|
|
|
|
make bootstrap
|
2006-03-15 20:00:12 +01:00
|
|
|
|
make check
|
2006-02-23 16:26:10 +01:00
|
|
|
|
make DESTDIR=$PKG install
|
2006-03-15 20:00:12 +01:00
|
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
|
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++
|
|
|
|
|
rm -rf $PKG/usr/info $PKG/usr/lib/libiberty.a \
|
|
|
|
|
$PKG/usr/bin/*-linux-gnu-* \
|
|
|
|
|
$PKG/usr/lib/gcc/*/$version/install-tools \
|
2006-03-16 17:26:09 +01:00
|
|
|
|
$PKG/usr/lib/gcc/*/$version/include/README
|
2006-02-23 16:26:10 +01:00
|
|
|
|
sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/{libstdc++.la,libsupc++.la}
|
|
|
|
|
}
|