summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortsutsui <tsutsui@pkgsrc.org>2012-08-24 15:04:53 +0000
committertsutsui <tsutsui@pkgsrc.org>2012-08-24 15:04:53 +0000
commit0aa01755415595a99f9bdc9ab17109edc4f960ff (patch)
tree5c96097ae6622ac9beb41d15a57f2b0c56a97fcc
parenta88c1e759b9f3ba426da172473d49937cb3b26eb (diff)
downloadpkgsrc-0aa01755415595a99f9bdc9ab17109edc4f960ff.tar.gz
gcc-4.5.3 in NetBSD/m68k 6.0_BETA2 gets ICE on compiling mktime.c.
-O1 works around in this case.
-rw-r--r--archivers/gtar-base/hacks.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/archivers/gtar-base/hacks.mk b/archivers/gtar-base/hacks.mk
new file mode 100644
index 00000000000..ab5a2a7f7b6
--- /dev/null
+++ b/archivers/gtar-base/hacks.mk
@@ -0,0 +1,15 @@
+# $NetBSD: hacks.mk,v 1.1 2012/08/24 15:04:53 tsutsui Exp $
+
+.if !defined(BISON_HACKS_MK)
+BISON_HACKS_MK= defined
+
+.include "../../mk/compiler.mk"
+
+### gcc-4.5.3 in NetBSD/m68k 6.0_BETA2 gets ICE on compiling mktime.c.
+### -O1 works around in this case.
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-m68k) && !empty(CC_VERSION:Mgcc-4.5.*)
+PKG_HACKS+= optimisation
+BUILDLINK_TRANSFORM+= rename:-O[2s]*:-O1
+.endif
+
+.endif # BISON_HACKS_MK