2006-02-23 15:26:10 +00:00
|
|
|
|
# Description: The GNU Compiler Collection
|
|
|
|
|
# URL: http://gcc.gnu.org
|
|
|
|
|
# Maintainer: Per Lid<69>n <per@fukt.bth.se>
|
|
|
|
|
|
|
|
|
|
name=gcc
|
2006-02-23 17:29:54 +00:00
|
|
|
|
version=4.0.2
|
2006-02-23 15:26:10 +00:00
|
|
|
|
release=1
|
2006-02-23 17:29:54 +00:00
|
|
|
|
source=(ftp://sources.redhat.com/pub/gcc/releases/$name-$version/$name-$version.tar.bz2)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
|
|
build() {
|
|
|
|
|
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 17:29:54 +00:00
|
|
|
|
--disable-nls \
|
|
|
|
|
--with-x=no
|
2006-02-23 15:26:10 +00:00
|
|
|
|
make bootstrap
|
2006-02-23 17:29:54 +00:00
|
|
|
|
make check | tee ~/gcc-${version}_make_test_resul
|
2006-02-23 15:26:10 +00:00
|
|
|
|
make 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++
|
|
|
|
|
rm -rf $PKG/usr/info $PKG/usr/lib/libiberty.a \
|
|
|
|
|
$PKG/usr/bin/*-linux-gnu-* \
|
|
|
|
|
$PKG/usr/lib/gcc/*/$version/install-tools \
|
2006-02-23 17:29:54 +00:00
|
|
|
|
$PKG/usr/lib/gcc/*/$version/include/README \
|
|
|
|
|
$PKG/usr/lib/gcc/*/$version/include/firefox \
|
|
|
|
|
$PKG/usr/lib/gcc/*/$version/include/X11 \
|
|
|
|
|
$PKG/usr/lib/gcc/*/$version/include/root
|
2006-02-23 15:26:10 +00:00
|
|
|
|
sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/{libstdc++.la,libsupc++.la}
|
|
|
|
|
}
|