[arch-commits] Commit in ifplugd/trunk (PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Sat May 16 20:46:55 UTC 2020


    Date: Saturday, May 16, 2020 @ 20:46:55
  Author: foutrelis
Revision: 384807

Add -fcommon workaround for GCC 10

Modified:
  ifplugd/trunk/PKGBUILD

----------+
 PKGBUILD |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-16 20:46:54 UTC (rev 384806)
+++ PKGBUILD	2020-05-16 20:46:55 UTC (rev 384807)
@@ -24,11 +24,16 @@
          'f2e8a37af52b79ee0e3c5bcc2470ce10'
          '3dc2ce45d0e12d155ecc7a5bc9e3ee04')
 
-build() {
+prepare() {
   cd ${pkgname}-${pkgver}
   patch -p0 -i ../ifplugd-0.28-interface.patch
   patch -p1 -i ../ifplugd-fix-return-value.patch
   sed 's|/var/run|/run|' -i src/ifplugd.c
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
   ./configure --prefix=/usr --sbindir=/usr/bin --mandir=/usr/share/man --sysconfdir=/etc \
       --with-initdir=/etc/rc.d --disable-xmltoman --disable-subversion --disable-lynx
   make


More information about the arch-commits mailing list