Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / lang / ruby193-base / hacks.mk
blobd893a50c12f33d4de499289a949500bf13e485d2
1 # $NetBSD: hacks.mk,v 1.4 2012/07/14 03:35:48 tsutsui Exp $
3 .if !defined(RUBY193_BASE_HACKS_MK)
4 RUBY193_BASE_HACKS_MK= defined
6 .include "../../mk/compiler.mk"
8 ### [ Sun Jun 5 10:05:39 CEST 2005 : seb ]
9 ### On NetBSD/sparc64, gcc optimisation, at least for version 3.3.3,
10 ### produces segmentation faulting miniruby binary.
11 ### Also note that `-O' level optimisation produces a miniruby
12 ### binary that loops while running the installation scripts.
13 ###
14 .if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64)
15 . if !empty(CC_VERSION:Mgcc-3.3.*)
16 PKG_HACKS+= optimisation
17 BUILDLINK_TRANSFORM+= rm:-O[0-9]*
18 . endif
19 ### ruby193 binary built on NetBSD/sparc64 with gcc 4.5.1 and the default -O2
20 ### dumps core during generating RDocs.
21 ### Using -O1 works around.
22 . if !empty(CC_VERSION:Mgcc-4.5.*)
23 PKG_HACKS+= optimisation
24 BUILDLINK_TRANSFORM+= rename:-O2:-O1
25 . endif
26 .endif
28 # On NetBSD/sh3el 6.0, the default -Os causes an error on compiling node.c:
29 # {standard input}: Assembler messages: {standard input}:1458: \
30 # Error: pcrel too far
31 # and -O1 works around.
32 .if !empty(MACHINE_PLATFORM:MNetBSD-*-sh3*) && !empty(CC_VERSION:Mgcc-4.5.*)
33 PKG_HACKS+= optimisation
34 BUILDLINK_TRANSFORM+= rename:-Os:-O1 rm:-freorder-blocks
35 .endif
37 .endif # RUBY193_BASE_HACKS_MK