Suppress duplicate librares linker warning of new macOS linker
Fixes #24167 XCode 15 introduced a new linker which warns on duplicate libraries being linked. To disable this warning, we pass -Wl,-no_warn_duplicate_libraries as suggested by Brad King in CMake issue #25297. This flag isn't necessarily available to other linkers on darwin, so we must only configure it into the CC linker arguments if valid.
Showing
- configure.ac 6 additions, 0 deletionsconfigure.ac
- distrib/configure.ac.in 6 additions, 0 deletionsdistrib/configure.ac.in
- m4/fp_ld_no_warn_duplicate_libraries.m4 29 additions, 0 deletionsm4/fp_ld_no_warn_duplicate_libraries.m4
- utils/ghc-toolchain/src/GHC/Toolchain/Tools/Link.hs 14 additions, 1 deletionutils/ghc-toolchain/src/GHC/Toolchain/Tools/Link.hs
m4/fp_ld_no_warn_duplicate_libraries.m4
0 → 100644
Please register or sign in to comment