Wed Apr 12 17:28:54 2023 UTC ()
Pullup ticket #6750 - requested by taca
lang/ruby32-base: build fix

Revisions pulled up:
- lang/ruby32-base/options.mk                                   1.2

---
   Module Name:	pkgsrc
   Committed By:	he
   Date:		Tue Apr  4 12:20:30 UTC 2023

   Modified Files:
   	pkgsrc/lang/ruby32-base: options.mk

   Log Message:
   ruby32-base: default to yjit only on platforms supporting it.

   That would be x86_64, aarch64 and (possibly) aarch64be.

   OK'ed by taca@


(bsiegert)
diff -r1.1 -r1.1.2.1 pkgsrc/lang/ruby32-base/options.mk

cvs diff -r1.1 -r1.1.2.1 pkgsrc/lang/ruby32-base/options.mk (expand / switch to context diff)
--- pkgsrc/lang/ruby32-base/options.mk 2023/01/21 13:51:23 1.1
+++ pkgsrc/lang/ruby32-base/options.mk 2023/04/12 17:28:54 1.1.2.1
@@ -1,8 +1,14 @@
-# $NetBSD: options.mk,v 1.1 2023/01/21 13:51:23 taca Exp $
+# $NetBSD: options.mk,v 1.1.2.1 2023/04/12 17:28:54 bsiegert Exp $
 
 PKG_OPTIONS_VAR=	PKG_OPTIONS.ruby
 PKG_SUPPORTED_OPTIONS=	ruby-build-ri-db ruby-yjit
-PKG_SUGGESTED_OPTIONS=	ruby-build-ri-db ruby-yjit
+PKG_SUGGESTED_OPTIONS=	ruby-build-ri-db
+
+.for a in "x86_64" "aarch64" "aarch64eb"
+.  if $a == ${MACHINE_ARCH}
+PKG_SUGGESTED_OPTIONS+=	ruby-yjit
+.  endif
+.endfor
 
 .include "../../mk/bsd.options.mk"