diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-05-22 12:47:26 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-05-22 12:47:37 +0200 |
commit | 78d34c3285bbdc8ba30bf07d06235f68f73346fb (patch) | |
tree | 90868ca068dc4231684cb965e68f25c459d84407 | |
parent | 4e02ad6fea5f74b340c37f40bbd9fb4ec2ffbaf3 (diff) |
cmake/{linux,mingw-w64}.cmake: inline visibility hidden is redundant
With -fvisibility=hidden it's hidden anyway.
-rw-r--r-- | cmake/linux.cmake | 2 | ||||
-rw-r--r-- | cmake/mingw-w64.cmake | 2 | ||||
-rw-r--r-- | gui/CMakeLists.txt | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/cmake/linux.cmake b/cmake/linux.cmake index 0951f7cc..8e61b09d 100644 --- a/cmake/linux.cmake +++ b/cmake/linux.cmake @@ -8,7 +8,7 @@ set(CMAKE_NM "gcc-nm" CACHE STRING "" FORCE) set(CMAKE_RANLIB "gcc-ranlib" CACHE STRING "" FORCE) set(CMAKE_C_FLAGS_RELEASE "-ffast-math -O3 -flto -fuse-linker-plugin -fvisibility=hidden" CACHE STRING "" FORCE) -set(CMAKE_CXX_FLAGS_RELEASE " ${CMAKE_C_FLAGS_RELEASE} -fvisibility-inlines-hidden " CACHE STRING "" FORCE) +set(CMAKE_CXX_FLAGS_RELEASE " ${CMAKE_C_FLAGS_RELEASE} " CACHE STRING "" FORCE) set(cmake-link-common "-std=c++11") set(CMAKE_EXE_LINKER_FLAGS "${cmake-link-common}" CACHE STRING "" FORCE) diff --git a/cmake/mingw-w64.cmake b/cmake/mingw-w64.cmake index 74654b19..657d7bb1 100644 --- a/cmake/mingw-w64.cmake +++ b/cmake/mingw-w64.cmake @@ -35,7 +35,7 @@ set(cpu "-O3 -march=pentium4 -mtune=corei7-avx -msse -msse2 -mno-sse3 -mno-avx - set(lto "-flto -fuse-linker-plugin") set(_CFLAGS " -fvisibility=hidden ") -set(_CXXFLAGS " -fvisibility-inlines-hidden ${_CFLAGS} ") +set(_CXXFLAGS " ${_CFLAGS} ") set(_CFLAGS_RELEASE " -s ${cpu} ${fpu} ${lto} ") set(_CFLAGS_DEBUG "-g -ggdb ${cpu} ${fpu} ") set(_CXXFLAGS_RELEASE " ${_CFLAGS_RELEASE} ") diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt index 5e47e7f7..e014e00b 100644 --- a/gui/CMakeLists.txt +++ b/gui/CMakeLists.txt @@ -40,7 +40,7 @@ endif() set(c-props) set(l-props) if(CMAKE_COMPILER_IS_GNUCXX) - set(c-props "-fvisibility=hidden -fvisibility-inlines-hidden") + set(c-props "-fvisibility=hidden ") if(NOT APPLE) set(l-props "-Wl,--as-needed") endif() |