Mon Aug 15 01:13:25 2011 UTC ()
Add work around for utimensat(2) on NetBSD.  (Don't use it.)


(taca)
diff -r1.1.1.1 -r1.2 pkgsrc/lang/ruby19-base/hacks.mk

cvs diff -r1.1.1.1 -r1.2 pkgsrc/lang/ruby19-base/Attic/hacks.mk (expand / switch to unified diff)

--- pkgsrc/lang/ruby19-base/Attic/hacks.mk 2010/09/12 03:50:06 1.1.1.1
+++ pkgsrc/lang/ruby19-base/Attic/hacks.mk 2011/08/15 01:13:25 1.2
@@ -1,21 +1,28 @@ @@ -1,21 +1,28 @@
1# $NetBSD: hacks.mk,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $ 1# $NetBSD: hacks.mk,v 1.2 2011/08/15 01:13:25 taca Exp $
2 2
3.if !defined(RUBY19_BASE_HACKS_MK) 3.if !defined(RUBY19_BASE_HACKS_MK)
4RUBY19_BASE_HACKS_MK= defined 4RUBY19_BASE_HACKS_MK= defined
5 5
6.include "../../mk/compiler.mk" 6.include "../../mk/compiler.mk"
7 7
8### [ Sun Jun 5 10:05:39 CEST 2005 : seb ] 8### [ Sun Jun 5 10:05:39 CEST 2005 : seb ]
9### On NetBSD/sparc64, gcc optimisation, at least for version 3.3.3, 9### On NetBSD/sparc64, gcc optimisation, at least for version 3.3.3,
10### produces segmentation faulting miniruby binary. 10### produces segmentation faulting miniruby binary.
11### Also note that `-O' level optimisation produces a miniruby 11### Also note that `-O' level optimisation produces a miniruby
12### binary that loops while running the installation scripts. 12### binary that loops while running the installation scripts.
13### 13###
14.if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64) 14.if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64)
15. if !empty(CC_VERSION:Mgcc-3.3.*) 15. if !empty(CC_VERSION:Mgcc-3.3.*)
16PKG_HACKS+= optimisation 16PKG_HACKS+= optimisation
17BUILDLINK_TRANSFORM+= rm:-O[0-9]* 17BUILDLINK_TRANSFORM+= rm:-O[0-9]*
18. endif 18. endif
19.endif 19.endif
20 20
 21#
 22# Work around for utimensat(2).
 23#
 24.if ${OPSYS} == "NetBSD"
 25CONFIGURE_ENV+= ac_cv_func_utimensat=no
 26.endif
 27
21.endif # RUBY19_BASE_HACKS_MK 28.endif # RUBY19_BASE_HACKS_MK