aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2013-02-09 22:10:30 +0100
committerDavid Faure <faure@kde.org>2013-02-09 22:10:56 +0100
commit93457e172cf17a442938614cca1862a2dcfd889f (patch)
tree7bd0c1c253c5a38e103b1087772daba6da500108
parent1250ea0c2bd8cb3f6f8ec71fa20eb37357ca3900 (diff)
downloadextra-cmake-modules-93457e172cf17a442938614cca1862a2dcfd889f.tar.gz
extra-cmake-modules-93457e172cf17a442938614cca1862a2dcfd889f.tar.bz2
Remove -fno-threadsafe-statics.
<thiago> that's an C++11-violating option. Time to stop using it. (and Qt5.1's Q_GLOBAL_STATIC relies on it)
-rw-r--r--kde-modules/KDECompilerSettings.cmake7
1 files changed, 0 insertions, 7 deletions
diff --git a/kde-modules/KDECompilerSettings.cmake b/kde-modules/KDECompilerSettings.cmake
index 5a184c37..c07b8dc9 100644
--- a/kde-modules/KDECompilerSettings.cmake
+++ b/kde-modules/KDECompilerSettings.cmake
@@ -368,13 +368,6 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set(GCC_IS_NEWER_THAN_4_3 TRUE)
endif()
- # save a little by making local statics not threadsafe
- # ### do not enable it for older compilers, see
- # ### http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31806
- if (GCC_IS_NEWER_THAN_4_3)
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-threadsafe-statics")
- endif()
-
if (GCC_IS_NEWER_THAN_4_2)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=return-type")
endif()