diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-08-11 17:10:00 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-08-11 17:10:00 +0200 |
commit | 9b13390ad08c84946386ae395870938daf89b116 (patch) | |
tree | 77db50d5b7bd5b5751e553378827082e5be228ef /ConfigureChecks.cmake | |
parent | 81fe4299f7a6d36fbebd7c71dfb8f7c8d7ff501b (diff) | |
download | libssh-9b13390ad08c84946386ae395870938daf89b116.tar.gz libssh-9b13390ad08c84946386ae395870938daf89b116.tar.xz libssh-9b13390ad08c84946386ae395870938daf89b116.zip |
Use gcc visibility attribute to get rid of the map file.
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 679dea7a..482ce65f 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -16,6 +16,8 @@ set(SYSCONFDIR ${SYSCONF_INSTALL_DIR}) set(BINARYDIR ${CMAKE_BINARY_DIR}) set(SOURCEDIR ${CMAKE_SOURCE_DIR}) +check_c_compiler_flag("-fvisibility=hidden" WITH_VISIBILITY_HIDDEN) + # HEADER FILES check_include_file(pty.h HAVE_PTY_H) check_include_file(terminos.h HAVE_TERMIOS_H) |