diff options
author | Vicent Martà <tanoku@gmail.com> | 2012-05-14 10:50:20 -0700 |
---|---|---|
committer | Vicent Martà <tanoku@gmail.com> | 2012-05-14 10:50:20 -0700 |
commit | 546ca93993ac224d1e66f20412a2f23bcc3d48ed (patch) | |
tree | 5e6797a22e8c0cb79a9c9e75e947f5baee6f1972 | |
parent | 0d6b776cb9ff04880cb87e5eeac0b6a5d509d8bb (diff) | |
parent | b15bef2301f451b6be86207e753f70a902cb3365 (diff) | |
download | libgit2-546ca93993ac224d1e66f20412a2f23bcc3d48ed.tar.gz |
Merge pull request #689 from scunz/visibility-gcc
Use -fvisibility=hidden in GCC builds
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index fbc222d5c..28eefe3b6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,7 +69,7 @@ IF (MSVC) # Precompiled headers ELSE () - SET(CMAKE_C_FLAGS "-O2 -g -D_GNU_SOURCE -Wall -Wextra -Wno-missing-field-initializers -Wstrict-aliasing=2 -Wstrict-prototypes -Wmissing-prototypes ${CMAKE_C_FLAGS}") + SET(CMAKE_C_FLAGS "-O2 -g -D_GNU_SOURCE -fvisibility=hidden -Wall -Wextra -Wno-missing-field-initializers -Wstrict-aliasing=2 -Wstrict-prototypes -Wmissing-prototypes ${CMAKE_C_FLAGS}") SET(CMAKE_C_FLAGS_DEBUG "-O0 -g") IF (NOT MINGW) # MinGW always does PIC and complains if we tell it to SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC") |