summaryrefslogtreecommitdiffstats
path: root/base/gcc/Pkgfile
diff options
context:
space:
mode:
authorsibel <lesibel@free.fr>2010-11-18 07:57:48 +0100
committersibel <lesibel@free.fr>2010-11-18 07:57:48 +0100
commit0e2af9fe43edc84c1e7c3bb4697fdcc61a273406 (patch)
tree84375a4c85f7e9c00582f796c6c7e76d4776406a /base/gcc/Pkgfile
parent4694b3ad3b73468b3bb8c266d12865d203f97c94 (diff)
downloadnutyx-pakxe-0e2af9fe43edc84c1e7c3bb4697fdcc61a273406.tar.gz
nutyx-pakxe-0e2af9fe43edc84c1e7c3bb4697fdcc61a273406.tar.bz2
nutyx-pakxe-0e2af9fe43edc84c1e7c3bb4697fdcc61a273406.tar.xz
nutyx-pakxe-0e2af9fe43edc84c1e7c3bb4697fdcc61a273406.zip
gcc maj 4.5.1-1
Diffstat (limited to 'base/gcc/Pkgfile')
-rwxr-xr-xbase/gcc/Pkgfile38
1 files changed, 26 insertions, 12 deletions
diff --git a/base/gcc/Pkgfile b/base/gcc/Pkgfile
index 072e4ecfe..215033916 100755
--- a/base/gcc/Pkgfile
+++ b/base/gcc/Pkgfile
@@ -4,14 +4,22 @@
# Maintainer: NuTyX core team
name=gcc
-version=4.5.0
-release=2
-source=(ftp://ftp.gnu.org/gnu/$name/$name-$version/$name-$version.tar.bz2\
- )
+version=4.5.1
+release=1
+
+source=(ftp://ftp.gnu.org/gnu/$name/$name-$version/$name-$version.tar.bz2 \
+ gcc_pure64.patch
+ gcc-hash-style-both.patch )
build() {
cd $name-$version
+if [ "${CARCH}" = "x86_64" ]; then
+ patch -Np1 -i ../gcc_pure64.patch
+ fi
+
+ patch -Np0 -i ../gcc-hash-style-both.patch
+
sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
case `uname -m` in
@@ -40,16 +48,22 @@ cd ../gcc-build
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/
# Move the python files, tanks to bouleetbil
- mv $PKG/usr/lib/libstdc++.so.6.0.14-gdb.py $PKG/usr/share/$name-$version/python/libstdcxx/
+ case `uname -m` in
+ i?86)
+ mv $PKG/usr/lib/libstdc++.so.6.0.14-gdb.py $PKG/usr/share/$name-$version/python/libstdcxx/ ;;
+ x86_64)
+ mv $PKG/usr/lib64/libstdc++.so.6.0.14-gdb.py $PKG/usr/share/$name-$version/python/libstdcxx/ ;;
+ esac
# Remove the dir file
if [ -f $PKG/usr/share/info/dir ]; then
rm $PKG/usr/share/info/dir
fi
-case `uname -m` in
- i?86) sed -i "s|-L$SRC[^ ]* ||g" \
- $PKG/usr/lib/{libstdc++.la,libsupc++.la} ;;
- x86_64)
- sed -i "s|-L$SRC[^ ]* ||g" \
- $PKG/usr/lib64/{libstdc++.la,libsupc++.la} ;;
-esac
+
+ case `uname -m` in
+ i?86) sed -i "s|-L$SRC[^ ]* ||g" \
+ $PKG/usr/lib/{libstdc++.la,libsupc++.la} ;;
+ x86_64)
+ sed -i "s|-L$SRC[^ ]* ||g" \
+ $PKG/usr/lib64/{libstdc++.la,libsupc++.la} ;;
+ esac
}