From 0aa01755415595a99f9bdc9ab17109edc4f960ff Mon Sep 17 00:00:00 2001 From: tsutsui Date: Fri, 24 Aug 2012 15:04:53 +0000 Subject: gcc-4.5.3 in NetBSD/m68k 6.0_BETA2 gets ICE on compiling mktime.c. -O1 works around in this case. --- archivers/gtar-base/hacks.mk | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 archivers/gtar-base/hacks.mk (limited to 'archivers') 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 -- cgit v1.2.3