From 1b2b06945fd897aed19416ec2cc177ce2805844a Mon Sep 17 00:00:00 2001 From: Alexandre Courbot Date: Mon, 22 Apr 2013 16:28:05 +0900 Subject: Add -lpthread when looking for crypto++ On some distributions (e.g. Arch Linux) configure will fail to find crypto++ because of the test program not linking due to undefined references to pthread functions. Signed-off-by: Alexandre Courbot Acked-by: Allen Martin --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 4bec284..36b8cf5 100644 --- a/configure.ac +++ b/configure.ac @@ -20,7 +20,7 @@ AC_CHECK_LIB([pthread], PKG_CHECK_MODULES([LIBUSB], [libusb-1.0]) AC_LANG(C++) SAVED_LDFLAGS=$LDFLAGS -LDFLAGS="$LDFLAGS -lcryptopp" +LDFLAGS="$LDFLAGS -lcryptopp -lpthread" CRYPTOLIB= AC_LINK_IFELSE( [AC_LANG_PROGRAM([#include ], -- cgit v1.2.1