From 85ac7e6b7a0830e0521550132844b2cf468f00e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arttu=20Yl=C3=A4-Outinen?= Date: Tue, 23 May 2017 15:31:45 +0300 Subject: [PATCH] Fix build with --with-cryptopp --disable-shared Adds -lstdc++ to LIBS in configure when cryptopp is enabled. Without -lstdc++ linking fails when configured with --with-cryptopp and --disable-shared. --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 4bb68396..1a8b4f1c 100644 --- a/configure.ac +++ b/configure.ac @@ -70,6 +70,7 @@ AS_IF([test "x$with_cryptopp" = "xyes"], ) AM_CONDITIONAL([USE_CRYPTOPP], [test "x$with_cryptopp" = "xyes"]) +AS_IF([test "x$with_cryptopp" = "xyes"], [cryptopp_LIBS="$cryptopp_LIBS -lstdc++"]) CPPFLAGS="$CPPFLAGS $cryptopp_CFLAGS" LIBS="$LIBS $cryptopp_LIBS"