SET(_tmp_${_variable} ${${_variable}})
SET(${_variable} "")
FOREACH(_lib ${_tmp_${_variable}})
- IF(_lib MATCHES "lib(c|quadmath|gfortran|m|rt|nsl|dl|pthread|clang_rt.*)\\.(a|so)$")
+ IF(_lib MATCHES "lib(c|quadmath|gfortran|m|rt|nsl|dl|pthread)\\.(a|so)$")
string(REGEX REPLACE ".*lib([a-z]+).so$" "\\1" _lib ${_lib})
ENDIF()
LIST(APPEND ${_variable} ${_lib})
# Search for every library that was specified with -l:
STRING(REGEX REPLACE "^-l" "" _token "${_token}")
- IF(NOT _token MATCHES "(petsc|stdc\\+\\+|gcc_s)")
+ IF(NOT _token MATCHES "(petsc|stdc\\+\\+|gcc_s|clang_rt)")
LIST(APPEND _cleanup_variables PETSC_LIBRARY_${_token})
- IF(_token MATCHES "^(c|quadmath|gfortran|m|rt|nsl|dl|pthread|clang_rt.*)$")
+ IF(_token MATCHES "^(c|quadmath|gfortran|m|rt|nsl|dl|pthread)$")
FIND_SYSTEM_LIBRARY(PETSC_LIBRARY_${_token} NAMES ${_token})
ELSE()
DEAL_II_FIND_LIBRARY(PETSC_LIBRARY_${_token}
<h3>Specific improvements</h3>
<ol>
- <li> Bugfix: Also treat libclang_rt and libclang_rt.osx as system libraries.
+ <li> Bugfix: Filter libclang_rt* from the PETSc link line.
<br>
(Matthias Maier, 2014/06/04)
</li>
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams