diff options
author | Timo Teräs <timo.teras@iki.fi> | 2019-09-30 11:02:08 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2019-09-30 11:05:17 +0300 |
commit | 97a2b093b1a8629a932b92fea13dfafc649dbb3d (patch) | |
tree | 3e53e52e5982c2d877fc9bbe2ad1002f6fe8dcd0 /main/gcc | |
parent | b13721f9a18ca668daa429995e64f780697502ae (diff) | |
download | aports-97a2b093b1a8629a932b92fea13dfafc649dbb3d.tar.bz2 aports-97a2b093b1a8629a932b92fea13dfafc649dbb3d.tar.xz |
main/gcc: fix cross compiler building
Fixes #10828
Diffstat (limited to 'main/gcc')
-rw-r--r-- | main/gcc/APKBUILD | 14 |
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 |