]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Do not export -Wl,--as-needed to the user config
authorMatthias Maier <tamiko@kyomu.43-1.org>
Sat, 19 Jul 2014 06:32:02 +0000 (06:32 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Sun, 20 Jul 2014 22:16:57 +0000 (00:16 +0200)
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

deal.II/cmake/config/CMakeLists.txt

index 533753878f7c8e5b4a9eb2f912dbe793f06470b9..d66f91efe484baaaaa1ab971a412da931dedfcca 100644 (file)
@@ -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")
 

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


Typeset in Trocchi and Trocchi Bold Sans Serif.