Skip to content

Commit 0779fa9

Browse files
committed
make with --no-builtin-variables
As observed in #2771, `?=` thinks that implicit definitions of CC`, `AR` and `ARFLAGS` are explicit. Disabling implicit variables is more straightforward than adapting the `Makefile` and `extconf.rb` around them.
1 parent ba82ce9 commit 0779fa9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/prism/extconf.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def make(env, target)
5151
system(
5252
env,
5353
RUBY_PLATFORM.include?("openbsd") ? "gmake" : "make",
54+
"--no-builtin-variables", # don't let GNU make implicit variables override variable fallbacks in the Makefile
5455
target,
5556
exception: true
5657
)

0 commit comments

Comments
 (0)