| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: hacks.mk,v 1.8 2013/04/03 11:57:46 obache Exp $ | | 1 | # $NetBSD: hacks.mk,v 1.9 2014/01/31 17:38:48 schnoebe Exp $ |
2 | | | 2 | |
3 | .if !defined(PERL5_HACKS_MK) | | 3 | .if !defined(PERL5_HACKS_MK) |
4 | PERL5_HACKS_MK= defined | | 4 | PERL5_HACKS_MK= defined |
5 | | | 5 | |
6 | .include "../../mk/compiler.mk" | | 6 | .include "../../mk/compiler.mk" |
7 | | | 7 | |
8 | ### [Thu Jun 7 04:25:34 UTC 2001 : jlam] | | 8 | ### [Thu Jun 7 04:25:34 UTC 2001 : jlam] |
9 | ### Fix brokenness when using an older toolchain (gcc<3.3) on | | 9 | ### Fix brokenness when using an older toolchain (gcc<3.3) on |
10 | ### NetBSD/sparc64. Pass -g and -DDEBUGGING to the compiler to | | 10 | ### NetBSD/sparc64. Pass -g and -DDEBUGGING to the compiler to |
11 | ### circumvent some code-generation bugs. | | 11 | ### circumvent some code-generation bugs. |
12 | ### | | 12 | ### |
13 | .if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64) | | 13 | .if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64) |
14 | . if !empty(CC_VERSION:Mgcc*) | | 14 | . if !empty(CC_VERSION:Mgcc*) |
| @@ -74,14 +74,24 @@ CFLAGS+= -fno-cse-skip-blocks | | | @@ -74,14 +74,24 @@ CFLAGS+= -fno-cse-skip-blocks |
74 | PKG_HACKS+= m68k-codegen | | 74 | PKG_HACKS+= m68k-codegen |
75 | BUILDLINK_TRANSFORM+= rename:-O[0-9]*:-Os | | 75 | BUILDLINK_TRANSFORM+= rename:-O[0-9]*:-Os |
76 | .endif | | 76 | .endif |
77 | | | 77 | |
78 | ### [Thr Mar 21 22:20:00 JST 2013 : obache] | | 78 | ### [Thr Mar 21 22:20:00 JST 2013 : obache] |
79 | ### from KNOWN PROBLEMS in README.haiku | | 79 | ### from KNOWN PROBLEMS in README.haiku |
80 | ### Perl cannot be compiled with threading support ATM. | | 80 | ### Perl cannot be compiled with threading support ATM. |
81 | ### | | 81 | ### |
82 | .if !empty(MACHINE_PLATFORM:MHaiku-*-*) | | 82 | .if !empty(MACHINE_PLATFORM:MHaiku-*-*) |
83 | PKG_HACKS+= broken-haiku-pthreads | | 83 | PKG_HACKS+= broken-haiku-pthreads |
84 | PERL5_BUILD_THREADS_SUPPORT= no | | 84 | PERL5_BUILD_THREADS_SUPPORT= no |
85 | .endif | | 85 | .endif |
86 | | | 86 | |
| | | 87 | ### [Fri Jan 31 11:09:04 CST 2014 : schnoebe] |
| | | 88 | ### gcc-4.*.* in NetBSD/alpha causes unaligned access exception in perl. |
| | | 89 | ### -O works around, and there is a report that -O2 -fno-tree-ter is enough. |
| | | 90 | .if !empty(MACHINE_PLATFORM:MNetBSD-*-alpha) && !empty(CC_VERSION:Mgcc-4.*.*) |
| | | 91 | # XXX: is there any good way to replace the default -O2 with multiple args? |
| | | 92 | PKG_HACKS+= alpha-optimisation |
| | | 93 | #BUILDLINK_TRANSFORM+= rename:-O[2-9]*:-O2 -fno-tree-ter |
| | | 94 | CFLAGS+=-fno-tree-ter |
| | | 95 | .endif |
| | | 96 | |
87 | .endif # PERL5_HACKS_MK | | 97 | .endif # PERL5_HACKS_MK |