pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/ruby24-base



Module Name:    pkgsrc
Committed By:   roy
Date:           Sat Dec 22 03:11:57 UTC 2018

Modified Files:
        pkgsrc/lang/ruby24-base: hacks.mk

Log Message:
ruby does not like -fomit-frame-pointer on NetBSD/aarch64


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/lang/ruby24-base/hacks.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/ruby24-base/hacks.mk
diff -u pkgsrc/lang/ruby24-base/hacks.mk:1.1 pkgsrc/lang/ruby24-base/hacks.mk:1.2
--- pkgsrc/lang/ruby24-base/hacks.mk:1.1        Sun Jun 18 13:45:11 2017
+++ pkgsrc/lang/ruby24-base/hacks.mk    Sat Dec 22 03:11:56 2018
@@ -1,4 +1,4 @@
-# $NetBSD: hacks.mk,v 1.1 2017/06/18 13:45:11 taca Exp $
+# $NetBSD: hacks.mk,v 1.2 2018/12/22 03:11:56 roy Exp $
 
 .if !defined(RUBY24_BASE_HACKS_MK)
 RUBY24_BASE_HACKS_MK=  defined
@@ -34,4 +34,11 @@ PKG_HACKS+=          optimisation
 BUILDLINK_TRANSFORM+=  opt:-Os:-O1 rm:-freorder-blocks
 .endif
 
+# On NetBSD/aarch64, gcc optimisation produces segmentation faulting
+# miniruby binary.
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-aarch64) && !empty(CC_VERSION:Mgcc-6.5.*)
+PKG_HACKS+=            optimisation
+BUILDLINK_TRANSFORM+=  rm:-fomit-frame-pointer
+.endif
+
 .endif # RUBY24_BASE_HACKS_MK



Home | Main Index | Thread Index | Old Index