From 93457e172cf17a442938614cca1862a2dcfd889f Mon Sep 17 00:00:00 2001 From: David Faure Date: Sat, 9 Feb 2013 22:10:30 +0100 Subject: Remove -fno-threadsafe-statics. that's an C++11-violating option. Time to stop using it. (and Qt5.1's Q_GLOBAL_STATIC relies on it) --- kde-modules/KDECompilerSettings.cmake | 7 ------- 1 file changed, 7 deletions(-) (limited to 'kde-modules/KDECompilerSettings.cmake') 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() -- cgit v1.2.1