From d0b2ff0094f3346eb8cab855d42bb15a2c9753be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Fri, 14 Jul 2017 11:21:59 +0000 Subject: main/gcc: fix cross-compiler build --- main/gcc/APKBUILD | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'main/gcc') diff --git a/main/gcc/APKBUILD b/main/gcc/APKBUILD index 7bea5d0f2e..13887980d0 100644 --- a/main/gcc/APKBUILD +++ b/main/gcc/APKBUILD @@ -347,9 +347,10 @@ package() { find "$pkgdir" -name 'ffi*.h' | xargs rm -f 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/ + 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 paxmark -pmrs "$pkgdir"/$_gcclibexec/cc1 -- cgit v1.2.3