diff options
author | seb <seb@pkgsrc.org> | 2005-06-06 13:49:25 +0000 |
---|---|---|
committer | seb <seb@pkgsrc.org> | 2005-06-06 13:49:25 +0000 |
commit | d5ee4f3ee66cbfccc179d345153ab9343b9af72e (patch) | |
tree | 2400a837e4257e8737cd7a365c7f15f2f073cd59 /lang | |
parent | eef9e315522841a4b6b9485821765e4b986996c3 (diff) | |
download | pkgsrc-d5ee4f3ee66cbfccc179d345153ab9343b9af72e.tar.gz |
Hack to make this package build and run its tests on at least
NetBSD/2.0_STABLE sparc64. I bet it also fixes it for other versions
of NetBSD on the same architecture.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/ruby18-base/hacks.mk | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lang/ruby18-base/hacks.mk b/lang/ruby18-base/hacks.mk new file mode 100644 index 00000000000..465c5af44da --- /dev/null +++ b/lang/ruby18-base/hacks.mk @@ -0,0 +1,21 @@ +# $NetBSD: hacks.mk,v 1.1 2005/06/06 13:49:25 seb Exp $ + +.if !defined(RUBY18_BASE_HACKS_MK) +RUBY18_BASE_HACKS_MK= defined + +.include "../../mk/compiler.mk" + +### [ Sun Jun 5 10:05:39 CEST 2005 : seb ] +### On NetBSD/sparc64, gcc optimisation, at least for version 3.3.3, +### produces segmentation faulting miniruby binary. +### Also note that `-O' level optimisation produces a miniruby +### binary that loops while running the installation scripts. +### +.if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64) +. if !empty(CC_VERSION:Mgcc-3.3.*) +PKG_HACKS+= optimisation +BUILDLINK_TRANSFORM+= rm:-O[0-9]* +. endif +.endif + +.endif # RUBY18_BASE_HACKS_MK |