Make extconf.rb honor AR and LD variables in addition to CC #3165
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What problem is this PR intended to solve?
#3160
Note I also have branches that fix this on v1.16.x and v1.15.x, but I wanted to make sure I actioned feedback in one place before I opened additional MRs.
Also note that Nokogiri doesn't seem to honor variables passed as gem configuration args, and I didn't add that here because I'm not entirely sure what the "canonical" way to do this is with mkmf/mini_portile. In other situations where I need to provide the toolchain (rdkafka/karafka-rdkafka), there seems to be no special code to convert
FOO=BAR
to an env var.That said, it's not actually necessary in my case because using
AR
andLD
fromRbConfig
is sufficient. So one might say if you need to do something different from that, maybe it's actually a good thing that you would need to doAR=x gem install nokogiri
rather thangem install nokogiri -- AR=x
. I can take a stab at making this work, though, if the team thinks that both ways should work.Have you included adequate test coverage?
N/A but I assume if it breaks the build in some configuration I didn't test, GitHub Actions will be mad about it :).
Does this change affect the behavior of either the C or the Java implementations?
No