CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
gcc: updated to 6.4.0
[ports/core-arm.git] / gcc / Pkgfile
CommitLineData
bd625380 1# Description: The GNU Compiler Collection
e4b6f718 2# URL: http://gcc.gnu.org
bd625380
VM
3# Maintainer: CRUX System Team, core-ports at crux dot nu
4# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
e4b6f718 5# Depends on: zlib libmpc
bd625380
VM
6
7name=gcc
f95a4b7f 8version=6.4.0
e722ceaa 9release=1
f95a4b7f 10source=(ftp://gcc.gnu.org/pub/gcc/releases/$name-$version/$name-$version.tar.xz
81b69b98 11 $name-nocheck-fixincludes.patch)
bd625380
VM
12
13build() {
bd625380 14 patch -d $name-$version -p1 -i $SRC/$name-nocheck-fixincludes.patch
676c65bf 15
bd625380
VM
16 mkdir build
17 cd build
e4b6f718 18
bd625380 19 ../$name-$version/configure --prefix=/usr \
91eac73a 20 --build=arm-unknown-linux-gnueabihf \
e4b6f718
VM
21 --with-abi=aapcs-linux --with-mode=arm \
22 --with-float=hard \
bd625380
VM
23 --libexecdir=/usr/lib \
24 --enable-languages=c,c++,objc \
25 --enable-threads=posix \
26 --enable-__cxa_atexit \
27 --enable-clocale=gnu \
28 --enable-shared \
29 --disable-nls \
30 --with-x=no \
31 --with-system-zlib \
e4b6f718 32 --with-pkgversion="CRUX-ARM"
0a901937
VM
33
34 make
bd625380
VM
35 make -j1 DESTDIR=$PKG install
36
37 mkdir $PKG/lib
38 ln -sf ../usr/bin/cpp $PKG/lib/cpp
39 ln -sf gcc $PKG/usr/bin/cc
40 ln -sf g++ $PKG/usr/bin/c++
41
e722ceaa 42 mv $PKG/usr/lib/gcc/*/$version/include-fixed/{limits.h,syslimits.h} $PKG/usr/lib/gcc/*/$version/include/
3cafb8b5 43 rm $PKG/usr/lib/libstdc++.so.6.0.22-gdb.py
81b69b98 44 rm -r $PKG/usr/share/{info,$name-$version}
549aff9e 45 rm -r $PKG/usr/bin/*-linux-gnu*
e722ceaa 46 rm -r $PKG/usr/lib/gcc/*/$version/{install-tools,include-fixed}
bd625380
VM
47
48 sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/{libstdc++.la,libsupc++.la}
49}