From dd14562d14ad25cb6bd9314c67c5213981ab9ec9 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 28 Dec 2014 03:37:16 +0100 Subject: [PATCH] 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. --- srcpkgs/pcc/template | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/srcpkgs/pcc/template b/srcpkgs/pcc/template index 752741976f3..36d89fb6232 100644 --- a/srcpkgs/pcc/template +++ b/srcpkgs/pcc/template @@ -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