summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@nvidia.com>2013-04-22 16:28:05 +0900
committerAllen Martin <amartin@nvidia.com>2013-05-02 09:28:20 -0700
commit1b2b06945fd897aed19416ec2cc177ce2805844a (patch)
treed4bceab5d5aec76ea14902e67e3b2a853d378393
parent7bc30bf21aab6bb50bcf6636a049edba8a85c44a (diff)
downloadtegrarcm-1b2b06945fd897aed19416ec2cc177ce2805844a.tar.gz
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 <acourbot@nvidia.com> Acked-by: Allen Martin <amartin@nvidia.com>
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
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 <cryptopp/cryptlib.h>],