Skip to content

Commit 98d7192

Browse files
ParadoxV5kddnewton
authored andcommitted
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 d226332 commit 98d7192

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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.match?(/openbsd|freebsd/) ? "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)