aboutsummaryrefslogtreecommitdiffstats
path: root/main/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'main/gcc')
-rw-r--r--main/gcc/APKBUILD5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/gcc/APKBUILD b/main/gcc/APKBUILD
index f90cd60be5..a2f7444a3e 100644
--- a/main/gcc/APKBUILD
+++ b/main/gcc/APKBUILD
@@ -369,7 +369,10 @@ package() {
mv "$pkgdir"/usr/lib/*-gdb.py \
"$pkgdir"/usr/share/gdb/python/auto-load/usr/lib/
- paxmark -pmrs "$pkgdir"/$_gcclibexec/cc1 || return 1
+ # only paxmark if cross-compiling, otherwise paxctl fails
+ if [ "$CBUILD" = "$CTARGET" ]; then
+ paxmark -pmrs "$pkgdir"/$_gcclibexec/cc1 || return 1
+ fi
# move ada runtime libs
if $LANG_ADA; then