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.
This commit is contained in:
Arttu Ylä-Outinen 2017-05-23 15:31:45 +03:00
parent 2e8838de6e
commit 85ac7e6b7a

View file

@ -70,6 +70,7 @@ AS_IF([test "x$with_cryptopp" = "xyes"],
) )
AM_CONDITIONAL([USE_CRYPTOPP], [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" CPPFLAGS="$CPPFLAGS $cryptopp_CFLAGS"
LIBS="$LIBS $cryptopp_LIBS" LIBS="$LIBS $cryptopp_LIBS"