aboutsummaryrefslogtreecommitdiffstats
path: root/main/gcc/APKBUILD
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2019-09-30 11:02:08 +0300
committerTimo Teräs <timo.teras@iki.fi>2019-09-30 11:05:17 +0300
commit97a2b093b1a8629a932b92fea13dfafc649dbb3d (patch)
tree3e53e52e5982c2d877fc9bbe2ad1002f6fe8dcd0 /main/gcc/APKBUILD
parentb13721f9a18ca668daa429995e64f780697502ae (diff)
downloadaports-97a2b093b1a8629a932b92fea13dfafc649dbb3d.tar.gz
aports-97a2b093b1a8629a932b92fea13dfafc649dbb3d.tar.bz2
aports-97a2b093b1a8629a932b92fea13dfafc649dbb3d.tar.xz
main/gcc: fix cross compiler building
Fixes #10828
Diffstat (limited to 'main/gcc/APKBUILD')
-rw-r--r--main/gcc/APKBUILD14
1 files changed, 8 insertions, 6 deletions
diff --git a/main/gcc/APKBUILD b/main/gcc/APKBUILD
index 3aef461b55..49331ec5ba 100644
--- a/main/gcc/APKBUILD
+++ b/main/gcc/APKBUILD
@@ -313,8 +313,8 @@ package() {
# we dont support gcj -static
# and saving 35MB is not bad.
find "$pkgdir" -name libgtkpeer.a \
- -o -name libgjsmalsa.a -o \
- -o -name libgij.a -o \
+ -o -name libgjsmalsa.a \
+ -o -name libgij.a \
| xargs rm -f
# strip debug info from some static libs
@@ -337,10 +337,12 @@ package() {
find "$pkgdir" -name 'ffi*.h' | xargs rm -f
local gdblib=${_target:+$CTARGET/}lib
- for i in $(find "$pkgdir"/usr/$gdblib/ -type f -maxdepth 1 -name "*-gdb.py" ); do
- mkdir -p "$pkgdir"/usr/share/gdb/python/auto-load/usr/$gdblib
- mv "$i" "$pkgdir"/usr/share/gdb/python/auto-load/usr/$gdblib/
- done
+ if [ -d "$pkgdir"/usr/$gdblib/ ]; then
+ for i in $(find "$pkgdir"/usr/$gdblib/ -type f -maxdepth 1 -name "*-gdb.py"); do
+ mkdir -p "$pkgdir"/usr/share/gdb/python/auto-load/usr/$gdblib
+ mv "$i" "$pkgdir"/usr/share/gdb/python/auto-load/usr/$gdblib/
+ done
+ fi
paxmark -pmrs "$pkgdir"/$_gcclibexec/cc1