aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@alpinelinux.org>2021-06-12 21:41:42 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2021-06-12 21:41:42 +0000
commit9a63416183087f223b7c63eb6319e9d3481816c0 (patch)
tree7f73ecd237724c75c245f0002ff1f6b90f8db1b7
parentd5e74aa6c708fa10986ac539f9b59e6977d28a0f (diff)
downloadaports-9a63416183087f223b7c63eb6319e9d3481816c0.tar.gz
aports-9a63416183087f223b7c63eb6319e9d3481816c0.tar.bz2
aports-9a63416183087f223b7c63eb6319e9d3481816c0.tar.xz
main/gcc: set riscv64 compiler specifics
also enable automatic linking of libatomic
-rw-r--r--main/gcc/APKBUILD3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/gcc/APKBUILD b/main/gcc/APKBUILD
index d355ad432d..413264cd6d 100644
--- a/main/gcc/APKBUILD
+++ b/main/gcc/APKBUILD
@@ -8,7 +8,7 @@ pkgver=10.3.1_git20210424
[ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target=""
pkgname="$pkgname$_target"
-pkgrel=1
+pkgrel=2
pkgdesc="The GNU Compiler Collection"
url="https://gcc.gnu.org"
arch="all"
@@ -267,6 +267,7 @@ build() {
i486-*-*-*) _arch_configure="--with-arch=i486 --with-tune=generic --enable-cld";;
i586-*-*-*) _arch_configure="--with-arch=i586 --with-tune=generic --enable-cld";;
s390x-*-*-*) _arch_configure="--with-arch=z196 --with-tune=zEC12 --with-zarch --with-long-double-128 --enable-decimal-float";;
+ riscv64-*-*-*) _arch_configure="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic";;
esac
case "$CTARGET_ARCH" in