configure: remove -c to link test for macOS#9072
Conversation
|
@daeho-ro it'd be great to add this into the 26.09 release. For that to happen, can you please resolve conflicts so I can run it through CI again? |
-c to link test for macOS-c to link test for macOS
94cc566 to
fb584fd
Compare
fb584fd to
5112a8e
Compare
What is there to fix? Last time i checked it works. |
|
As far as I remember, those line tried to link library but |
I don't see that warning in CI. Do you see it in your local setup? |
|
For 26.06.1, and same error for head build (master) |
|
I think i get it now, just not why CI is NOT failing the macos test. This is supposed to check if |
|
First of all, I don't know much about c or c++ languages, so this is totally out of my scope, sorry. I was just seen this from homebrew bump PR. |
5112a8e to
9be1020
Compare
nGoline
left a comment
There was a problem hiding this comment.
Removing -c makes this a proper compile+link probe. With -c (compile-only), -Wl,--gc-sections never reaches the linker. On macOS 14 (our CI), clang warns about the unused linker flag and -Werror causes the test to fail safely. But on macOS 15 (Homebrew CI), clang no longer emits that warning, so the test passes falsely, --gc-sections gets added to LDFLAGS, and the real build fails at link time.
Changelog-None
Important
26.04 FREEZE March 11th: Non-bugfix PRs not ready by this date will wait for 26.06.
RC1 is scheduled on March 23rd
The final release is scheduled for April 15th.
Fix to build on macOS.
Checklist
Before submitting the PR, ensure the following tasks are completed. If an item is not applicable to your PR, please mark it as checked:
tools/lightning-downgrade