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