From 1d7fddca8ea1f1ac243d824a3c61079c77be3a75 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 2 Jun 2021 10:11:13 -0400 Subject: CMakeParseImplicitLinkInfo: Honor GNU static runtime library flags With flags like `-static-libstdc++` or `-static-libgfortran`, the GNU compiler driver adds `-Bstatic ... -Bdynamic` around its language runtime library. Convert the libraries in between these to absolute paths so that mixed-language linking honors the static runtime libraries. --- Tests/CMakeTests/ImplicitLinkInfoTest.cmake.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Tests/CMakeTests') diff --git a/Tests/CMakeTests/ImplicitLinkInfoTest.cmake.in b/Tests/CMakeTests/ImplicitLinkInfoTest.cmake.in index 1254ff9624..63c234acf7 100644 --- a/Tests/CMakeTests/ImplicitLinkInfoTest.cmake.in +++ b/Tests/CMakeTests/ImplicitLinkInfoTest.cmake.in @@ -2,6 +2,9 @@ # test it. include(${CMAKE_ROOT}/Modules/CMakeParseImplicitLinkInfo.cmake) +set(CMAKE_FIND_LIBRARY_PREFIXES "disabled-for-test-") +set(CMAKE_FIND_LIBRARY_SUFFIXES "-disabled-for-test") + #----------------------------------------------------------------------------- # Linux -- cgit v1.2.1