Skip to content
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

Merged
merged 1 commit into from
Apr 23, 2024
Merged

Fall back to default AR and CC #2725

merged 1 commit into from
Apr 23, 2024

Conversation

kddnewton
Copy link
Collaborator

No description provided.

Copy link
Contributor

@ParadoxV5 ParadoxV5 left a 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 than KEY=VALUE make), or
  • rename the ARFLAGS variable in the Makefile

Comment on lines 15 to +16
CC ?= cc
AR ?= ar
Copy link
Contributor

@ParadoxV5 ParadoxV5 Apr 22, 2024

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)

Suggested change
CC ?= cc
AR ?= ar

Copy link
Collaborator Author

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")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants