From: Bruno Turcksin Date: Thu, 3 Sep 2015 23:33:32 +0000 (-0500) Subject: Workaround a bug with Ubuntu 14.04 X-Git-Tag: v8.4.0-rc2~480^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1524%2Fhead;p=dealii.git Workaround a bug with Ubuntu 14.04 --- diff --git a/cmake/checks/check_01_cxx_features.cmake b/cmake/checks/check_01_cxx_features.cmake index a21768720e..1bfd262585 100644 --- a/cmake/checks/check_01_cxx_features.cmake +++ b/cmake/checks/check_01_cxx_features.cmake @@ -224,6 +224,12 @@ IF(NOT DEFINED DEAL_II_WITH_CXX11 OR DEAL_II_WITH_CXX11) # IF(DEAL_II_ALLOW_PLATFORM_INTROSPECTION) PUSH_CMAKE_REQUIRED("-pthread") + # + # On Ubuntu 14.04, the code below won't run without the flag + # -Wl,-no-as-needed. However, deal.II will work fine without + # the flag. + # + PUSH_CMAKE_REQUIRED("-Wl,-no-as-needed") CHECK_CXX_SOURCE_RUNS( " #include