diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-10-01 10:19:07 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-10-01 10:19:07 +0200 |
commit | 8ed9cdce80d78d3466cbd075ff48e40268d38c91 (patch) | |
tree | be744f7183a967613cd1a2af73f3ad8ee15d1645 | |
parent | 571dd56ecac6727d0c63f1e0195e45a31dd05d44 (diff) | |
download | libssh-8ed9cdce80d78d3466cbd075ff48e40268d38c91.tar.gz libssh-8ed9cdce80d78d3466cbd075ff48e40268d38c91.tar.xz libssh-8ed9cdce80d78d3466cbd075ff48e40268d38c91.zip |
Remove --as-needed linker flag.
-rw-r--r-- | ConfigureChecks.cmake | 3 | ||||
-rw-r--r-- | cmake/Modules/DefineCompilerFlags.cmake | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 6ccc6070..8ca82585 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -39,8 +39,10 @@ endif (WIN32) set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIRS}) check_include_file(openssl/aes.h HAVE_OPENSSL_AES_H) + set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIRS}) check_include_file(openssl/blowfish.h HAVE_OPENSSL_BLOWFISH_H) + set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIRS}) check_include_file(openssl/des.h HAVE_OPENSSL_DES_H) @@ -75,6 +77,7 @@ if (UNIX) check_function_exists(cfmakeraw HAVE_CFMAKERAW) check_function_exists(regcomp HAVE_REGCOMP) endif (UNIX) + set(LIBSSH_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} CACHE INTERNAL "libssh required system libraries") # LIBRARIES diff --git a/cmake/Modules/DefineCompilerFlags.cmake b/cmake/Modules/DefineCompilerFlags.cmake index dafc7996..dcaf8da8 100644 --- a/cmake/Modules/DefineCompilerFlags.cmake +++ b/cmake/Modules/DefineCompilerFlags.cmake @@ -48,8 +48,6 @@ if (UNIX AND NOT WIN32) add_definitions(-D_FORTIFY_SOURCE=2) endif (WITH_FORTIFY_SOURCE) - # Set linker flags - set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed") endif (CMAKE_COMPILER_IS_GNUCC) endif (UNIX AND NOT WIN32) |