aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZee Eichel <zee@dracos-linux.org>2019-06-07 22:50:49 +0700
committerZee Eichel <zee@dracos-linux.org>2019-06-07 22:50:49 +0700
commit1a55280eb8812da0c496c3f3828aa730884d4a89 (patch)
tree38084f1f0fdc698e3484b2357cac3fb0ee9c73f2
parent29daef1bd555b629495b8cd16b06134b1b9de9cc (diff)
downloaddemit.extra-git.repo-1a55280eb8812da0c496c3f3828aa730884d4a89.tar.gz
demit.extra-git.repo-1a55280eb8812da0c496c3f3828aa730884d4a89.tar.bz2
demit.extra-git.repo-1a55280eb8812da0c496c3f3828aa730884d4a89.zip
typo fixHEADmaster
-rw-r--r--gcc/PKGBUILD76
1 files changed, 76 insertions, 0 deletions
diff --git a/gcc/PKGBUILD b/gcc/PKGBUILD
new file mode 100644
index 0000000..cf4904c
--- /dev/null
+++ b/gcc/PKGBUILD
@@ -0,0 +1,76 @@
+#Maintainer: Zee Eichel <zee@dracos-linux.org>
+
+pkgname=gcc
+pkgver=8.2.0
+pkgrel=1
+pkgdesc="The GNU Compiler Collection."
+arch=(x86_64)
+url="http://gcc.gnu.org"
+license=('GPL')
+depends=('gc')
+provides=("${pkgname}")
+conflicts=("${pkgname}")
+source=("https://ftp.gnu.org/gnu/gcc/gcc-8.2.0/gcc-8.2.0.tar.xz")
+sha256sums=('196c3c04ba2613f893283977e6011b2345d1cd1af9abeac58e916b1aab3e0080')
+
+prepare() {
+cd "$pkgname-$pkgver"
+
+case $(uname -m) in
+x86_64)
+ sed -e '/m64=/s/lib64/lib/' \
+ -i.orig gcc/config/i386/t-linux64
+;;
+esac
+
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+
+mkdir build &&
+cd build &&
+
+../configure \
+ --prefix=/usr \
+ --disable-multilib \
+ --disable-libmpx \
+ --with-system-zlib \
+ --enable-__cxa_atexit \
+ --enable-cet=auto \
+ --enable-checking=release \
+ --enable-clocale=gnu \
+ --enable-default-pie \
+ --enable-default-ssp \
+ --enable-gnu-unique-object \
+ --enable-install-libiberty \
+ --enable-linker-build-id \
+ --enable-objc-gc \
+ --enable-plugin \
+ --enable-shared \
+ --enable-threads=posix \
+ --with-linker-hash-style=gnu \
+ --disable-libmpx \
+ --with-pkgversion="dracOs ${pkgver/+/ }" \
+ --enable-languages=c,c++,fortran,go,objc,obj-c++ &&
+make -j11
+}
+
+package() {
+
+cd "$pkgname-$pkgver"
+cd build
+
+make -j1 -k install DESTDIR="$pkgdir/"
+
+mkdir -pv $pkgdir/usr/share/gdb/auto-load/usr/lib &&
+mv -v $pkgdir/usr/lib/*gdb.py $pkgdir/usr/share/gdb/auto-load/usr/lib &&
+
+ chown -v -R root:root \
+ $pkgdir/usr/lib/gcc/*linux-gnu/8.2.0/include{,-fixed}
+ install -dm 755 $pkgdir/lib
+ ln -v -sf ../usr/bin/cpp $pkgdir/lib &&
+ ln -v -sf gcc $pkgdir/usr/bin/cc &&
+ install -v -dm755 $pkgdir/usr/lib/bfd-plugins &&
+ ln -sfv ../../libexec/gcc/$(gcc -dumpmachine)/8.2.0/liblto_plugin.so $pkgdir/usr/lib/bfd-plugins/
+}