Build with -fvisibility=hidden.
This matches the Chromium build, in both static and components builds. (Also happens to sort out an undocumented requirement of the standalone shared library build.) Change-Id: Ib47fc4c2143115fe6faf9b83079576075efd72bb Reviewed-on: https://boringssl-review.googlesource.com/3091 Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
parent
afdaeee7ed
commit
9a9a193388
@ -3,8 +3,8 @@ cmake_minimum_required (VERSION 2.8.10)
|
||||
project (BoringSSL)
|
||||
|
||||
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -ggdb")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -ggdb -std=c++0x")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -ggdb -fvisibility=hidden")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -ggdb -std=c++0x -fvisibility=hidden")
|
||||
elseif(MSVC)
|
||||
# Disable warnings for implicit integer narrowing.
|
||||
set(CMAKE_C_FLAGS "/wd4267")
|
||||
|
Loading…
Reference in New Issue
Block a user