diff options
author | martin <martin@pkgsrc.org> | 2012-07-23 08:13:31 +0000 |
---|---|---|
committer | martin <martin@pkgsrc.org> | 2012-07-23 08:13:31 +0000 |
commit | f7d6ec96dc8eab500d8daffa6e5926e3006bbc89 (patch) | |
tree | b10c37c2759f27b741c34445528b2f7ab4810c6d /net/mrtg | |
parent | 7171b606ffca536d7261ac6e0b9e9a9f11aff31f (diff) | |
download | pkgsrc-f7d6ec96dc8eab500d8daffa6e5926e3006bbc89.tar.gz |
Add compiler hack to work around PR port-sparc64/46719.
Diffstat (limited to 'net/mrtg')
-rw-r--r-- | net/mrtg/hacks.mk | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net/mrtg/hacks.mk b/net/mrtg/hacks.mk new file mode 100644 index 00000000000..ff5a6551ad7 --- /dev/null +++ b/net/mrtg/hacks.mk @@ -0,0 +1,15 @@ +# $NetBSD: hacks.mk,v 1.1 2012/07/23 08:13:31 martin Exp $ + +.if !defined(MRTG_HACKS_MK) +MRTG_HACKS_MK= defined + +.include "../../mk/bsd.fast.prefs.mk" +.include "../../mk/compiler.mk" + +# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48830 +# PR port-sparc64/46719 +.if !empty(PKGSRC_COMPILER:Mgcc) && !empty(CC_VERSION:Mgcc-4.[0-6]*) && !empty(MACHINE_PLATFORM:M*-*-sparc64) +CFLAGS+= -O1 +.endif + +.endif # MRTG_HACKS_MK |