summaryrefslogtreecommitdiff
path: root/src/stage2/patches/generic/gcc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'src/stage2/patches/generic/gcc.patch')
-rw-r--r--src/stage2/patches/generic/gcc.patch26
1 files changed, 24 insertions, 2 deletions
diff --git a/src/stage2/patches/generic/gcc.patch b/src/stage2/patches/generic/gcc.patch
index 98d6f8c..354d8a8 100644
--- a/src/stage2/patches/generic/gcc.patch
+++ b/src/stage2/patches/generic/gcc.patch
@@ -14,8 +14,8 @@ diff -rupN a/0001-pthread-reentrant.patch b/0001-pthread-reentrant.patch
+ -melf" XLEN_SPEC "lriscv \
+ %{shared} \
diff -rupN a/PKGBUILD b/PKGBUILD
---- a/PKGBUILD 2018-05-25 10:15:30.533015789 +0200
-+++ b/PKGBUILD 2018-05-25 10:18:49.539689424 +0200
+--- a/PKGBUILD 2018-06-19 08:33:15.147041639 +0200
++++ b/PKGBUILD 2018-06-19 08:56:49.223722416 +0200
@@ -5,8 +5,9 @@
# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc
# NOTE: libtool requires rebuilt with each new gcc version
@@ -230,3 +230,25 @@ diff -rupN a/PKGBUILD b/PKGBUILD
install-{toolexeclibDATA,nodist_fincludeHEADERS}
make -C $CHOST/libgomp DESTDIR="$pkgdir" install-nodist_fincludeHEADERS
make -C gcc DESTDIR="$pkgdir" fortran.install-{common,man,info}
+@@ -365,20 +355,12 @@ package_lib32-gcc-libs() {
+
+ for lib in libatomic \
+ libgfortran \
+- libgo \
+ libgomp \
+- libitm \
+ libquadmath \
+- libsanitizer/{a,l,ub}san \
+- libstdc++-v3/src \
+- libvtv; do
++ libstdc++-v3/src; do
+ make -C $CHOST/32/$lib DESTDIR="$pkgdir" install-toolexeclibLTLIBRARIES
+ done
+
+- make -C $CHOST/32/libobjc DESTDIR="$pkgdir" install-libs
+- make -C $CHOST/32/libmpx DESTDIR="$pkgdir" install
+- rm -f "$pkgdir/usr/lib32/libmpx.spec"
+-
+ # remove files provided by gcc-libs
+ rm -rf "$pkgdir"/usr/lib
+