diff options
author | William Pitcock <nenolod@dereferenced.org> | 2017-01-24 18:58:16 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2017-01-24 18:58:40 +0000 |
commit | bae9e2d7c0f9201348d3267596b24a34fa03dc91 (patch) | |
tree | 87345b2a7e76d231d56f2df4ad836f3813b7f739 /main/gcc | |
parent | 625464be2139d8f92fc932d5eb8426202f8158fa (diff) | |
download | aports-bae9e2d7c0f9201348d3267596b24a34fa03dc91.tar.bz2 aports-bae9e2d7c0f9201348d3267596b24a34fa03dc91.tar.xz |
main/gcc: disable all paxmark calls when cross-building
Diffstat (limited to 'main/gcc')
-rw-r--r-- | main/gcc/APKBUILD | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/main/gcc/APKBUILD b/main/gcc/APKBUILD index a2f7444a3e..5c22fe765d 100644 --- a/main/gcc/APKBUILD +++ b/main/gcc/APKBUILD @@ -370,9 +370,7 @@ package() { "$pkgdir"/usr/share/gdb/python/auto-load/usr/lib/ # only paxmark if cross-compiling, otherwise paxctl fails - if [ "$CBUILD" = "$CTARGET" ]; then - paxmark -pmrs "$pkgdir"/$_gcclibexec/cc1 || return 1 - fi + [ "$CBUILD" = "$CTARGET" ] && (paxmark -pmrs "$pkgdir"/$_gcclibexec/cc1 || return 1) # move ada runtime libs if $LANG_ADA; then @@ -429,7 +427,7 @@ gpp() { "$subpkgdir"/usr/${_cross:+$CTARGET/}lib \ mv "$pkgdir/$_gcclibexec/cc1plus" "$subpkgdir/$_gcclibexec/" - paxmark -pmrs "$subpkgdir/$_gcclibexec/cc1plus" || return 1 + [ "$CBUILD" = "$CTARGET" ] && (paxmark -pmrs "$subpkgdir/$_gcclibexec/cc1plus" || return 1) mv "$pkgdir"/usr/${_cross:+$CTARGET/}lib/*++* "$subpkgdir"/usr/${_cross:+$CTARGET/}lib/ || return 1 mv "$pkgdir"/usr/${_cross:+$CTARGET/}include/c++ "$subpkgdir"/usr/${_cross:+$CTARGET/}include/ || return 1 @@ -480,7 +478,7 @@ java() { pkgdesc="Java support for GCC" depends="zlib-dev gcc=$_gccrel libgcj=$_gccrel" - paxmark -pm "$pkgdir"/$_gcclibexec/ecj1 || return 1 + [ "$CBUILD" = "$CTARGET" ] && (paxmark -pm "$pkgdir"/$_gcclibexec/ecj1 || return 1) mkdir -p "$subpkgdir"/usr/bin "$subpkgdir"/usr/lib "$subpkgdir"/$_gcclibdir/ cd "$pkgdir"/usr/bin mv gcj gcj-dbtool gjavah gcjh jcf-dump "$subpkgdir"/usr/bin/ @@ -506,7 +504,7 @@ libgcj() { mkdir -p "$subpkgdir"/usr/bin cd "$pkgdir"/usr/bin - paxmark -pmse "$pkgdir"/usr/bin/gij || return 1 + [ "$CBUILD" = "$CTARGET" ] && (paxmark -pmse "$pkgdir"/usr/bin/gij || return 1) mv aot-compile gappletviewer gc-analyze gij gjar gjarsigner gkeytool\ gnative2ascii gorbd grmic grmid grmiregistry gserialver \ gtnameserv jv-convert rebuild-gcj-db \ |