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

Autoconf: Disable LDFLAGS for C testing #674

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

marshallward
Copy link
Member

Certain compilers would expect values passed to ld which cannot be passed to the C compiler. This caused the autoconf C configuration to fail, since it uses to CC for linking rather than LD.

Since we never use the C compiler for linking, this is not something we need to be concerned about, and the LDFLAGS is disabled when testing the C compiler.

This is only a concern when using certain GPU-related flags in the Nvidia compiler, and is only a problem for libraries with a significant amount of C code, such as FMS.

Certain compilers would expect values passed to ld which cannot be
passed to the C compiler.  This caused the autoconf C configuration to
fail, since it uses to CC for linking rather than LD.

Since we never use the C compiler for linking, this is not something we
need to be concerned about, and the LDFLAGS is disabled when testing the
C compiler.

This is only a concern when using certain GPU-related flags in the
Nvidia compiler, and is only a problem for libraries with a significant
amount of C code, such as FMS.
@Hallberg-NOAA
Copy link
Member

This has passed pipeline testing at https://gitlab.gfdl.noaa.gov/ogrp/mom6ci/MOM6/-/pipelines/24040.

@Hallberg-NOAA Hallberg-NOAA merged commit ac9d6a4 into NOAA-GFDL:dev/gfdl Jul 9, 2024
12 checks passed
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.

3 participants