-
Notifications
You must be signed in to change notification settings - Fork 35
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
configure: use correct CFLAGS and LDFLAGS variables #780
Conversation
The CFLAGS and LDFLAGS variables were used opposite of their intended usage for the udunits2 and netcdf external dependencies, so correct them. * configure: regenerate from... * configure.ac: use correct CFLAGS and LDFLAGS variables
@mkrupcale thanks for this PR. Did you have some docs to point to which supports this flag correction? It would also be really useful as background to understand where these settings caused issues, so that we could capture such a problem with a test moving forward |
I think it's fairly standard that linker flags go in
The reversal of compiler and linker flag variables could cause issues in the |
@mkrupcale did you test your changes in a build - looks like the change has broken our CI builds, see below |
Yes, these changes work fine for me on Fedora Linux. Speaking of which, I'm working on packaging
I don't think this change broke the CI. The CI is failing to checkout my
If you give me repo access, I can push a branch to the main repo, which should fix the CI job. [1] https://github.com/PCMDI/cmor/actions/runs/13752979396/job/38510374479?pr=780#step:7:39 |
@mkrupcale @durack1 I can confirm that this change works when building it on my machine. I will approve and merge this change. |
@mauzey1 is there a trivial way to fix this? Can we cherry pick a patch from a remote repo for testing? |
@durack1 I think the issue is due to the rerendering step assuming that all branches are from the PCMDI organization. I'll try to see if we can get it configured to use other orgs' or users' branches. It will still require our approval to run CI processes if a non-PCMDI user submits a PR to merge external branches. |
The
CFLAGS
andLDFLAGS
variables were used opposite of their intended usage for theudunits2
andnetcdf
external dependencies, so correct them.configure
: regenerate from...configure.ac
: use correctCFLAGS
andLDFLAGS
variables