pcc: raise gcc compat minor version to 4.1 to make it work with glibc.

Otherwise glibc headers think that it's gcc-4.3 and supports some
attributes that aren't really supported.
This commit is contained in:
Juan RP 2014-12-28 03:37:16 +01:00
parent ddba9b6abf
commit dd14562d14

View file

@ -1,7 +1,7 @@
# Template file for 'pcc'
pkgname=pcc
version=1.1.0
revision=1
revision=2
build_style=gnu-configure
configure_args="--enable-tls"
hostmakedepends="flex"
@ -15,6 +15,9 @@ distfiles="http://pcc.ludd.ltu.se/ftp/pub/pcc-releases/pcc-$version.tgz"
checksum=d9e3fed84c767dcddefb6b1f854d5da8921f3f65d8bd02997743412f41474d64
only_for_archs="i686 x86_64"
pre_configure() {
sed -i '/GNUC_MINOR/s,3,1,g' cc/cc/cc.c cc/driver/platform.c
}
post_install() {
# Rename conflicting cpp.1 manpage.
mv ${DESTDIR}/usr/share/man/man1/{cpp,pcc-cpp}.1