]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Fix up building against local static OpenSSL
authorDavid Woodhouse <dwmw2@infradead.org>
Wed, 9 Jan 2019 11:40:45 +0000 (11:40 +0000)
committerDavid Woodhouse <dwmw2@infradead.org>
Wed, 9 Jan 2019 11:40:45 +0000 (11:40 +0000)
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
configure.ac

index b2bb4483ac7b71896be4db6eb64d8d540340fff7..47ef5739fff9989ba7f4d9f6fbe5dada6c41ee78 100644 (file)
@@ -342,12 +342,12 @@ if test "$ssl_library" = ""; then
     else
        OPENSSL_CFLAGS="-I${with_openssl}/include ${OPENSSL_CFLAGS}"
        if test -r "${with_openssl}/libssl.a" -a -r "${with_openssl}/libcrypto.a";  then
-           OPENSSL_LIBS="${with_openssl}/libssl.a ${with_openssl}/libcrypto.a -ldl -lz"
+           OPENSSL_LIBS="${with_openssl}/libssl.a ${with_openssl}/libcrypto.a -ldl -lz -pthread"
        elif test -r "${with_openssl}/crypto/.libs/libcrypto.a" -a \
                  -r "${with_openssl}/ssl/.libs/libssl.a"; then
-           OPENSSL_LIBS="${with_openssl}/ssl/.libs/libssl.a ${with_openssl}/crypto/.libs/libcrypto.a -ldl -lz"
+           OPENSSL_LIBS="${with_openssl}/ssl/.libs/libssl.a ${with_openssl}/crypto/.libs/libcrypto.a -ldl -lz -pthread"
        else
-           AC_ERROR([Could not found OpenSSL libraries]);
+           AC_ERROR([Could not find OpenSSL libraries in ${with_openssl}]);
        fi
        AC_SUBST(OPENSSL_CFLAGS)
        AC_SUBST(OPENSSL_LIBS)