diff options
author | Alexandre Courbot <acourbot@nvidia.com> | 2013-04-22 16:28:05 +0900 |
---|---|---|
committer | Allen Martin <amartin@nvidia.com> | 2013-05-02 09:28:20 -0700 |
commit | 1b2b06945fd897aed19416ec2cc177ce2805844a (patch) | |
tree | d4bceab5d5aec76ea14902e67e3b2a853d378393 | |
parent | 7bc30bf21aab6bb50bcf6636a049edba8a85c44a (diff) | |
download | tegrarcm-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.ac | 2 |
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>], |