[arch-commits] Commit in bumblebee/trunk (PKGBUILD)
Evangelos Foutras
foutrelis at archlinux.org
Tue Jul 7 21:16:11 UTC 2020
Date: Tuesday, July 7, 2020 @ 21:16:10
Author: foutrelis
Revision: 660261
Add -fcommon workaround for GCC 10
Modified:
bumblebee/trunk/PKGBUILD
----------+
PKGBUILD | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-07-07 21:16:09 UTC (rev 660260)
+++ PKGBUILD 2020-07-07 21:16:10 UTC (rev 660261)
@@ -43,12 +43,16 @@
'1c3d4f5d40245a23a5f1cb1f2f6bd4274ff3c5b3749f76a09255191328ae3193'
'1bc209c21b4f6d1975ede4091829baf98d20b33100b9d21061393880bb391fd8')
-build() {
+prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
for p in ${srcdir}/*.patch; do
patch -Np1 -i "$p"
done
+}
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
./configure \
CONF_DRIVER_MODULE_NVIDIA=nvidia \
CONF_LDPATH_NVIDIA=/usr/lib/nvidia:/usr/lib32/nvidia:/usr/lib:/usr/lib32 \
More information about the arch-commits
mailing list