Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/build-support/gcc11/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2023-04-29 13:36:03 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2023-04-29 13:36:03 +0200
commit1f7a3bd06ad5c186a2344e6bc96f42dd241a5978 (patch)
tree58209bfc0a6737a750276012f007bf58a9247b6c /build-support/gcc11/PKGBUILD
parentbe13a1f801d48c4682556bb7708cb3e40aced104 (diff)
cope with empty dirs in gcc11
Diffstat (limited to 'build-support/gcc11/PKGBUILD')
-rw-r--r--build-support/gcc11/PKGBUILD6
1 files changed, 5 insertions, 1 deletions
diff --git a/build-support/gcc11/PKGBUILD b/build-support/gcc11/PKGBUILD
index 85ad643a..6f8a5b52 100644
--- a/build-support/gcc11/PKGBUILD
+++ b/build-support/gcc11/PKGBUILD
@@ -190,7 +190,11 @@ package_gcc11-libs() {
cd gcc-build
make -C $CHOST/libgcc DESTDIR="$pkgdir" install-shared
- mv "${pkgdir}/${_libdir}"/../lib/* "${pkgdir}/${_libdir}"
+ if [ -d "$dir" ] && files=$(ls -qAH -- "$dir") && [ -z "$files" ]; then
+ echo "${pkgdir}/${_libdir}"/../lib/ is empty"
+ else
+ mv "${pkgdir}/${_libdir}"/../lib/* "${pkgdir}/${_libdir}"
+ fi
rmdir "${pkgdir}/${_libdir}"/../lib
rm -f "$pkgdir/$_libdir/libgcc_eh.a"