diff options
-rw-r--r-- | archivers/gtar-base/hacks.mk | 15 |
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 |