From 8bf18018cd2c44d3af75ecd0de9e58d56d7603f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Tue, 18 Aug 2020 15:30:41 +0200 Subject: [PATCH] gprolog: needs -fcommon for gcc10 [ci skip] --- srcpkgs/gprolog/template | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/srcpkgs/gprolog/template b/srcpkgs/gprolog/template index 712938d3f7..0681feeaea 100644 --- a/srcpkgs/gprolog/template +++ b/srcpkgs/gprolog/template @@ -17,10 +17,16 @@ checksum=bfdcf00e051e0628b4f9af9d6638d4fde6ad793401e58a5619d1cc6105618c7c disable_parallel_build=yes nopie=yes # native asm generated +CFLAGS="-fcommon" + case $XBPS_MACHINE in i686*) broken="pl2wam segfaults in _dl_fixup, https://build.voidlinux.org/builders/i686_builder/builds/10260/steps/shell_3/logs/stdio" ;; esac +post_configure() { + vsed -i */Makefile -e "/^CFLAGS\\s*=.*/s/$/ -fcommon/" +} + post_install() { mv ${DESTDIR}/usr/lib/gprolog/{NEWS,README,ChangeLog} \ ${DESTDIR}/usr/share/doc/gprolog