1 diff --git a/CMakeLists.txt b/CMakeLists.txt
2 index 7d22d3ca..7784ab58 100644
5 @@ -335,7 +335,7 @@ check_include_file(openssl/rand.h HAVE_OPENSSL_RAND_H)
6 check_include_file(openssl/conf.h HAVE_OPENSSL_CONF_H)
7 check_include_file(openssl/engine.h HAVE_OPENSSL_ENGINE_H)
9 -set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_LIBRARIES})
10 +set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_LIBRARIES} ${getdns_system_libs})
11 check_function_exists(DSA_SIG_set0 HAVE_DSA_SIG_SET0)
12 check_function_exists(DSA_set0_pqg HAVE_DSA_SET0_PQG)
13 check_function_exists(DSA_set0_key HAVE_DSA_SET0_KEY)