[arch-commits] Commit in gcc11/trunk (PKGBUILD)
Chih-Hsuan Yen
yan12125 at gemini.archlinux.org
Tue May 31 08:38:08 UTC 2022
Date: Tuesday, May 31, 2022 @ 08:38:08
Author: yan12125
Revision: 1217460
upgpkg: gcc11 11.3.0-4; gcc11-libs: symlink to libraries from gcc-libs to allow linking programs built with gcc 11 and with gcc 12 together
This may be needed for programs using CUDA. CUDA is not yet fully compatible with gcc 12, while some dependencies may already be built with gcc 12.
Modified:
gcc11/trunk/PKGBUILD
----------+
PKGBUILD | 22 ++++++++++++----------
1 file changed, 12 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-05-31 08:38:07 UTC (rev 1217459)
+++ PKGBUILD 2022-05-31 08:38:08 UTC (rev 1217460)
@@ -9,7 +9,7 @@
pkgname=($pkgbase gcc11-libs gcc11-fortran)
pkgver=11.3.0
_majorver=${pkgver%%.*}
-pkgrel=3
+pkgrel=4
pkgdesc='The GNU Compiler Collection (11.x.x)'
arch=(x86_64)
license=(GPL LGPL FDL custom)
@@ -122,15 +122,17 @@
rmdir "${pkgdir}/${_libdir}"/../lib
rm -f "$pkgdir/$_libdir/libgcc_eh.a"
- for lib in libatomic \
- libgfortran \
- libgomp \
- libitm \
- libquadmath \
- libsanitizer/{a,l,ub,t}san \
- libstdc++-v3/src \
- libvtv; do
- make -C $CHOST/$lib DESTDIR="$pkgdir" install-toolexeclibLTLIBRARIES
+ for lib in libasan.so \
+ libatomic.so \
+ libgfortran.so \
+ libgomp.so \
+ libitm.so \
+ liblsan.so \
+ libquadmath.so \
+ libstdc++.so \
+ libtsan.so \
+ libubsan.so; do
+ ln -s /usr/lib/$lib "$pkgdir/$_libdir/$lib"
done
make -C $CHOST/libstdc++-v3/po DESTDIR="$pkgdir" install
More information about the arch-commits
mailing list