From 4f06ccd17dedbd2e6617e54b01b2acf5e2c8799c Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 31 Dec 2015 00:13:16 +0900 Subject: [PATCH] Add -ldl to APPLDFLAGS for static openssl linking --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 23921b71..33f461cf 100644 --- a/configure.ac +++ b/configure.ac @@ -255,6 +255,11 @@ if test "x${have_zlib}" = "xno"; then AC_MSG_NOTICE($ZLIB_PKG_ERRORS) fi +# dl: openssl requires libdl when it is statically linked. +LIBS_OLD=$LIBS +AC_SEARCH_LIBS([dlopen], [dl], [APPLDFLAGS="-ldl $APPLDFLAGS"], [], []) +LIBS=$LIBS_OLD + # cunit PKG_CHECK_MODULES([CUNIT], [cunit >= 2.1], [have_cunit=yes], [have_cunit=no]) # If pkg-config does not find cunit, check it using AC_CHECK_LIB. We