-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fall back to default AR and CC #2725
Conversation
adf14eb
to
c08eebf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prism-0.26.0.gem
was accidentally checked in; the CI is also complaining about it.
I put #2711 (comment) on hold for observing the progress of #2716 first.
In order to override GNU make
’s default ARFLAGS
without affecting extconf.rb
, we’ll have to either
- send these preferences via CLI args rather than env vars (CLI:
make KEY=VALUE
rather thanKEY=VALUE make
), or - rename the
ARFLAGS
variable in theMakefile
CC ?= cc | ||
AR ?= ar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discovered in #2711 (comment), CC ?= cc
and AR ?= ar
has no effect, whether run from make
directly (because GNU make
already preconfigures them to cc
and ar
respectively) or from extconf.rb
(as it’ll override them with rbconfig
values)
CC ?= cc | |
AR ?= ar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with you in theory, but something else must be going on here, because after lots of back and forth with @forthrin this is what finally resolved the issue. I'm assuming there's something else here going on.
require "rbconfig" | ||
env = RbConfig::CONFIG.slice("SOEXT", "CPPFLAGS", "CFLAGS", "CC", "AR", "ARFLAGS", "MAKEDIRS", "RMALL") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.