aboutsummaryrefslogtreecommitdiffstats
path: root/main/gcc/APKBUILD
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2020-08-30 16:23:15 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2020-09-04 20:13:17 +0200
commitb93b0b134f7d10720a4359579ff4f55575ac90e3 (patch)
treecd7ca4cedc9d9518cb540359fe381926453f1d8d /main/gcc/APKBUILD
parent1c38dfeeb6062544e2c67cc32a91faf22b16ce62 (diff)
downloadaports-b93b0b134f7d10720a4359579ff4f55575ac90e3.tar.gz
aports-b93b0b134f7d10720a4359579ff4f55575ac90e3.tar.bz2
aports-b93b0b134f7d10720a4359579ff4f55575ac90e3.tar.xz
main/gcc: add support for gcc-go
This adds support for gcc-go using libucontext-dev. Additionally, several patches are required to make this work with musl libc. These have been taken form Adélie Linux. However, Adélie Linux still uses gcc 8.X, I had to additional minor patches to make gcc-go 10.X compile. The changes proposed here have been reviewed and ok'ed by Ariadne.
Diffstat (limited to 'main/gcc/APKBUILD')
-rw-r--r--main/gcc/APKBUILD31
1 files changed, 25 insertions, 6 deletions
diff --git a/main/gcc/APKBUILD b/main/gcc/APKBUILD
index e717ece036..6876a10270 100644
--- a/main/gcc/APKBUILD
+++ b/main/gcc/APKBUILD
@@ -6,7 +6,7 @@ pkgver=10.2.0
[ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target=""
pkgname="$pkgname$_target"
-pkgrel=2
+pkgrel=3
pkgdesc="The GNU Compiler Collection"
url="https://gcc.gnu.org"
arch="all"
@@ -14,7 +14,7 @@ license="GPL-2.0-or-later LGPL-2.1-or-later"
_gccrel=$pkgver-r$pkgrel
depends="binutils$_target isl"
makedepends_build="gcc$_cross g++$_cross paxmark bison flex texinfo gawk zip gmp-dev mpfr-dev mpc1-dev zlib-dev"
-makedepends_host="linux-headers gmp-dev mpfr-dev mpc1-dev isl-dev zlib-dev !gettext-dev"
+makedepends_host="linux-headers gmp-dev mpfr-dev mpc1-dev isl-dev zlib-dev !gettext-dev libucontext-dev"
subpackages=" "
[ "$CHOST" = "$CTARGET" ] && subpackages="gcc-doc$_target"
replaces="libstdc++ binutils"
@@ -93,9 +93,6 @@ fi
# See libphobos/configure.tgt in GCC sources for supported targets
[ "$CARCH" = ppc64le ] && LANG_D=false
-# Go needs {set,make,swap}context, unimplemented in musl
-[ "$CTARGET_LIBC" = musl ] && LANG_GO=false
-
# libitm has TEXTRELs in ARM build, so disable for now
case "$CTARGET_ARCH" in
arm*) _libitm=false ;;
@@ -180,6 +177,17 @@ source="https://gcc.gnu.org/pub/gcc/releases/gcc-${_pkgbase:-$pkgver}/gcc-${_pkg
0028-ada-musl-support-fixes.patch
0029-c-Fix-bogus-vector-initialisation-error-PR96377.patch
0030-rs6000-ICE-when-using-an-MMA-type-as-a-function-para.patch
+ 0031-gcc-go-Use-_off_t-type-instead-of-_loff_t.patch
+ 0032-gcc-go-Don-t-include-sys-user.h.patch
+ 0033-gcc-go-Fix-ucontext_t-on-PPC64.patch
+ 0034-gcc-go-Fix-handling-of-signal-34-on-musl.patch
+ 0035-gcc-go-Use-int64-type-as-offset-argument-for-mmap.patch
+ 0036-gcc-go-Fix-st_-a-m-c-tim-fields-in-generated-sysinfo.patch
+ 0037-gcc-go-signal-34-is-special-on-musl-libc.patch
+ 0038-gcc-go-Prefer-_off_t-over-_off64_t.patch
+ 0039-gcc-go-undef-SETCONTEXT_CLOBBERS_TLS-in-proc.c.patch
+ 0040-gcc-go-link-to-libucontext.patch
+ 0041-gcc-go-Disable-printing-of-unaccessible-ppc64-struct.patch
"
# gcc-4.8-build-args.patch
@@ -642,4 +650,15 @@ ac3288b7840e5cf2500608773f40e604798b30fcb885c9fec7ba0bcc4bcfd374211faa26e82fcf46
59d9e0a5f39ad68b8bb1365f7c97a54ca4751cdad01ead8184fd897d8a13156145976a8b5b9856be154c053d6ba11eaad1e5662e7ddda9ba6d2811340df61cba 0027-ada-libgnarl-compatibility-for-musl.patch
8207323c530929517c799b24b1a7ba39c07bbb0e6770f878f1d66088ae16667e7706c9402ac04fe5eb6447a6ad12b548cc7e7612c5b217cd24e7d00094d2a28f 0028-ada-musl-support-fixes.patch
b90f7ad074b6183a4afc6be65349b8bf94b78d1c259d5be9877c16e3de95222fb6905cba7eb6ee4fe1e564ed20bf183c6815bd087896b6b0376656a841736fc1 0029-c-Fix-bogus-vector-initialisation-error-PR96377.patch
-39a66708fb7ab4a72e1973749e32c22484e8e6c0afde6a59a645f2536c71cea86c8de2f0448621d53888293121344e84a24617400fae849282df57e0f5ddc21d 0030-rs6000-ICE-when-using-an-MMA-type-as-a-function-para.patch"
+39a66708fb7ab4a72e1973749e32c22484e8e6c0afde6a59a645f2536c71cea86c8de2f0448621d53888293121344e84a24617400fae849282df57e0f5ddc21d 0030-rs6000-ICE-when-using-an-MMA-type-as-a-function-para.patch
+ae0d860324b8b907ff82fcebe4777afae19df85b091723ac55425d24f677fb4e1d14ff4f21cdcdf837dcf730a4c48174e0cc31d1d003a5d11a88c226d5ed3e4a 0031-gcc-go-Use-_off_t-type-instead-of-_loff_t.patch
+a08ea6ce516dc96029153de096b96dcd3262509ee546f1f03152abe8f78c11c75b8dc14de39ccd982896114bf33d2edade2b4810dcc0b2d68e4abf52b67b8a41 0032-gcc-go-Don-t-include-sys-user.h.patch
+3bbd3ab3d31fc81cbc6b641919a84807e52b59794f860cad83b9ff69bfd0f5f29aeefc5f19b203bc96db23bf6e5a6958690bd81caa3137eaa5111b5c465273b3 0033-gcc-go-Fix-ucontext_t-on-PPC64.patch
+9c410c3a137a18559f1ae5ab5803d5bc8fc596a93da769b4ff2feec516602eb193333d18d55ce39e054b56726a5c243962e8ccdee001ae7e186b4222465b31a3 0034-gcc-go-Fix-handling-of-signal-34-on-musl.patch
+78af84111854f5d2de127f03fc0984ea1f9c2c87156be2c454cc88a6791c90817aed63aba2861657560b1d3bc182a31e3d74f7a946e56d831939870240625fb7 0035-gcc-go-Use-int64-type-as-offset-argument-for-mmap.patch
+c0d47b5bc478b3e0943806806d81a9183b9d176148e31c75d50cdbb23a34d9c178d751a3fac743d94ebb44c7eae70d3c55ca115acedcf4a1a0bacf46c0c5cd5f 0036-gcc-go-Fix-st_-a-m-c-tim-fields-in-generated-sysinfo.patch
+e9b523a34b5e2930e0c58ee19e903e5416fe65641df80c40937d445d4c8f4f4bde59b3a94a392f5ca0d1c4a87565bd655c186b3a5194cb5bce4de2864d5d025d 0037-gcc-go-signal-34-is-special-on-musl-libc.patch
+d75147c2b062b0321b36d843c55887673d8bdac6448da465c29853ac5df3b68153551913476f2ea0fdb6d09df3992e47d457e480b3c16d99e6668b4f941e6e16 0038-gcc-go-Prefer-_off_t-over-_off64_t.patch
+a60d2101f49d921cb538fd46650ba550f30721650b40e15fe8a56da32e5f2a3ea62f10d93982ffb45bee2e284cc006141b5d7a96fa12215d63b183b0a67c4c55 0039-gcc-go-undef-SETCONTEXT_CLOBBERS_TLS-in-proc.c.patch
+f08cfc9622e84a5a527b626dcca7199a430ab1c02588fef718bcb0155bc5af5a11888aa975e76e55cc2b9b70520a8bf1bcf939e5afe073f6263685686bc9c26f 0040-gcc-go-link-to-libucontext.patch
+f27644461c8a3fd27026873639608e53a396e9b9d39c4f330c8eeba82bb9b1e68ae1bfb82c770424399a13762bb3ec147b2699b2cbbdca07628ab3896d806ce4 0041-gcc-go-Disable-printing-of-unaccessible-ppc64-struct.patch"