From: maier Date: Sat, 19 Jul 2014 06:32:02 +0000 (+0000) Subject: CMake: Do not export -Wl,--as-needed to the user config X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3297a0f9db495c68014381c900acb2844af0fcd4;p=dealii-svn.git CMake: Do not export -Wl,--as-needed to the user config This commit tries to address issue 235 by removing -Wl,--as-needed from DEAL_II_LINKER_FLAGS prior to configuration of deal.II's project config so that -Wl,--as-needed doesn't show up any more on user side. git-svn-id: https://svn.dealii.org/trunk@33200 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/cmake/config/CMakeLists.txt b/deal.II/cmake/config/CMakeLists.txt index 533753878f..d66f91efe4 100644 --- a/deal.II/cmake/config/CMakeLists.txt +++ b/deal.II/cmake/config/CMakeLists.txt @@ -64,10 +64,17 @@ INSTALL(FILES # for installation: # # ######################################################################## +# +# Do not force --as-needed for executables on user side: +# + +STRIP_FLAG(DEAL_II_LINKER_FLAGS "-Wl,--as-needed") + # # Strip -Wno-deprecated from DEAL_II_CXX_FLAGS so that deprecation warnings # are actually shown for user code: # + STRIP_FLAG(DEAL_II_CXX_FLAGS "-Wno-deprecated") STRIP_FLAG(DEAL_II_CXX_FLAGS "-Wno-deprecated-declarations")