index : packages | |
Archlinux32 package modifications | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | build-support/gcc11/PKGBUILD | 6 |
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" |