diff options
author | tsutsui <tsutsui@pkgsrc.org> | 2012-08-24 15:04:53 +0000 |
---|---|---|
committer | tsutsui <tsutsui@pkgsrc.org> | 2012-08-24 15:04:53 +0000 |
commit | 0aa01755415595a99f9bdc9ab17109edc4f960ff (patch) | |
tree | 5c96097ae6622ac9beb41d15a57f2b0c56a97fcc /archivers | |
parent | a88c1e759b9f3ba426da172473d49937cb3b26eb (diff) | |
download | pkgsrc-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.
Diffstat (limited to 'archivers')
-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 |