diff options
author | Yuta Saito <kateinoigakukun@gmail.com> | 2021-08-25 16:24:25 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2021-08-25 18:47:44 +0900 |
commit | d1f0d1ca2ea4d7418b096ce71f68ce2bb3afd2c4 (patch) | |
tree | b7044deb09f1a57cd8ece4104b4e93b28ddc29b8 /defs/gmake.mk | |
parent | c4c0b60d92d134e093f1df86bb37b67e524a26cb (diff) |
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
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4776
Diffstat (limited to 'defs/gmake.mk')
-rw-r--r-- | defs/gmake.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/defs/gmake.mk b/defs/gmake.mk index 11e677a2d1..7dd24cfdb4 100644 --- a/defs/gmake.mk +++ b/defs/gmake.mk @@ -360,6 +360,10 @@ spec/bundler/%: PHONY 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)/%,$@) |