Skip to content

Fall back to default AR and CC#2725

Merged
kddnewton merged 1 commit into
mainfrom
fallback
Apr 23, 2024
Merged

Fall back to default AR and CC#2725
kddnewton merged 1 commit into
mainfrom
fallback

Conversation

@kddnewton

Copy link
Copy Markdown
Collaborator

No description provided.

@ParadoxV5 ParadoxV5 left a comment

Copy link
Copy Markdown
Contributor

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 thread Makefile
Comment on lines 15 to +16
CC ?= cc
AR ?= ar

@ParadoxV5 ParadoxV5 Apr 22, 2024

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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.

Comment thread ext/prism/extconf.rb
# up as much of the configuration to the configuration that built the current
# version of Ruby as possible.
require "rbconfig"
env = RbConfig::CONFIG.slice("SOEXT", "CPPFLAGS", "CFLAGS", "CC", "AR", "ARFLAGS", "MAKEDIRS", "RMALL")

Copy link
Copy Markdown
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.

2 participants