Commit 68005e25 authored by Brad King's avatar Brad King

Restore exclusion of "gcc*" libraries from implicit link information

Revert commit v3.9.0-rc1~148^2 (Do not assume GCC libs are linked by all
compilers, 2017-05-05).  Libraries such as `gcc_s` and `gcc_eh` are
*conditionally* implied by gcc based on how it is invoked.  They are not
safe to use arbitrarily, and so cannot be reported as part of gcc's
implicit libraries.  Another solution to mixing compiler vendors will be

Fixes: #17436
parent ddeabf05
Pipeline #80312 passed with stage
......@@ -142,7 +142,7 @@ function(CMAKE_PARSE_IMPLICIT_LINK_INFO text lib_var dir_var fwk_var log_var obj
# We remove items that are not language-specific.
set(implicit_libs "")
foreach(lib IN LISTS implicit_libs_tmp)
if("x${lib}" MATCHES "^x(crt.*\\.o|System.*|.*libclang_rt.*|msvcrt.*|libvcruntime.*|libucrt.*|libcmt.*)$")
if("x${lib}" MATCHES "^x(crt.*\\.o|gcc.*|System.*|.*libclang_rt.*|msvcrt.*|libvcruntime.*|libucrt.*|libcmt.*)$")
string(APPEND log " remove lib [${lib}]\n")
elseif(IS_ABSOLUTE "${lib}")
get_filename_component(abs "${lib}" ABSOLUTE)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment