diff options
author | xentec <xentec@aix0.eu> | 2017-05-19 16:00:04 +0200 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2017-05-23 22:19:08 +0000 |
commit | 245c7809b92e2423c41ce71180c80f671e13dc12 (patch) | |
tree | faa2af9731b1a7bba89a75ebde19898849d5e82b /main/gcc | |
parent | d6223f1dc477875a51e83570f507f62703f39622 (diff) | |
download | aports-245c7809b92e2423c41ce71180c80f671e13dc12.tar.bz2 aports-245c7809b92e2423c41ce71180c80f671e13dc12.tar.xz |
main/gcc: fix cross-compile paths for gdb helper
Diffstat (limited to 'main/gcc')
-rw-r--r-- | main/gcc/APKBUILD | 7 |
1 files changed, 4 insertions, 3 deletions
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 |