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

ompi_setup_fc.m4: use -Wl,-ld_classic if supported #12650

Merged
merged 1 commit into from
Jul 10, 2024

Commits on Jul 9, 2024

  1. ompi_setup_fc.m4: use -Wl,-ld_classic if supported

    Per open-mpi#12427, on MacOS, add
    -Wl,-ld_classic to the Fortran wrapper compiler if that flag is
    needed.
    
    Specifically, Open MPI has used -Wl,-commons,use_dylibs for decades to
    support common symbols (e.g., MPI_BOTTOM) in the Fortran bindings.
    There is a window of Xcode versions where this switch was effectively
    disabled; it effectively required the additional -Wl,-ld_classic
    switch to force the use of the "old" Apple linker (that still
    supported -Wl,-commons,use_dylibs).  Update the configury to test
    whether we need -Wl,-ld_classic or not.
    
    Signed-off-by: Jeff Squyres <[email protected]>
    jsquyres committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    84555f0 View commit details
    Browse the repository at this point in the history