gprolog: needs -fcommon for gcc10

[ci skip]
This commit is contained in:
Jürgen Buchmüller 2020-08-18 15:30:41 +02:00
parent 72c2d6dcf7
commit 8bf18018cd

View file

@ -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