Skip to content

Commit

Permalink
don't set -s with clang Tokutek/mongo#869
Browse files Browse the repository at this point in the history
  • Loading branch information
leifwalsh committed Dec 24, 2013
1 parent 275201e commit d422336
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backup/CMakeLists.txt
Expand Up @@ -62,7 +62,10 @@ function(add_space_separated_property type obj propname val)
endif ()
endfunction(add_space_separated_property)

set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -flto -s -UNDEBUG")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -flto -UNDEBUG")
if (NOT CMAKE_CXX_COMPILER_ID MATCHES Clang)
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -s")
endif ()

## add a version script and set -fvisibility=hidden for the shared library.
configure_file(export.map . COPYONLY)
Expand Down

0 comments on commit d422336

Please sign in to comment.