ruby-changes:67246
From: Yuta <ko1@a...>
Date: Wed, 25 Aug 2021 18:48:02 +0900 (JST)
Subject: [ruby-changes:67246] d1f0d1ca2e (master): Fix build failure on macOS with --enable-shared
https://git.ruby-lang.org/ruby.git/commit/?id=d1f0d1ca2e From d1f0d1ca2ea4d7418b096ce71f68ce2bb3afd2c4 Mon Sep 17 00:00:00 2001 From: Yuta Saito <kateinoigakukun@g...> Date: Wed, 25 Aug 2021 16:24:25 +0900 Subject: Fix build failure on macOS with --enable-shared ./spec/ruby/optional/capi/ext/array_spec.c can match with spec/%/ if using GNU Make under version 3.81. make command installed on macOS is 3.81, so ruby can't be built with default make on macOS with --enable-shared option since https://github.com/ruby/ruby/commit/bda56a03a625793cb3fd110458c3f7323d73705e --- defs/gmake.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/defs/gmake.mk b/defs/gmake.mk index 11e677a..7dd24cf 100644 --- a/defs/gmake.mk +++ b/defs/gmake.mk @@ -360,6 +360,10 @@ spec/bundler/%: PHONY https://github.com/ruby/ruby/blob/trunk/defs/gmake.mk#L360 spec/bundler: test-bundler-parallel $(Q)$(NULLCMD) +# workaround to avoid matching non ruby files with "spec/%/" under GNU make 3.81 +spec/%_spec.c spec/%_spec.bundle: + $(NOOP) + spec/%/ spec/%_spec.rb: programs exts PHONY +$(RUNRUBY) -r./$(arch)-fake $(srcdir)/spec/mspec/bin/mspec-run -B $(srcdir)/spec/default.mspec $(SPECOPTS) $(patsubst %,$(srcdir)/%,$@) -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/