Created
May 3, 2017 15:05
-
-
Save xentec/81856fc05d32bbaa8f8c7df9d3a0c672 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/main/gcc/APKBUILD b/main/gcc/APKBUILD | |
index 4ba13f8bf6..80bcb150eb 100644 | |
--- a/main/gcc/APKBUILD | |
+++ b/main/gcc/APKBUILD | |
@@ -357,9 +357,10 @@ package() { | |
rm -f "$pkgdir"/usr/lib/libffi* "$pkgdir"/usr/share/man/man3/ffi* | |
find "$pkgdir" -name 'ffi*.h' | xargs rm -f | |
- mkdir -p "$pkgdir"/usr/share/gdb/python/auto-load/usr/lib | |
- mv "$pkgdir"/usr/lib/*-gdb.py \ | |
- "$pkgdir"/usr/share/gdb/python/auto-load/usr/lib/ | |
+ local gdblib=${_target:+$CTARGET/}lib | |
+ mkdir -p "$pkgdir"/usr/share/gdb/python/auto-load/usr/$gdblib | |
+ mv "$pkgdir"/usr/$gdblib/*-gdb.py \ | |
+ "$pkgdir"/usr/share/gdb/python/auto-load/usr/$gdblib/ | |
paxmark -pmrs "$pkgdir"/$_gcclibexec/cc1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment