From 9f60bf915ca239c28e3b35a15867eefb4d1da3f7 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Tue, 5 May 2015 13:54:11 +0200 Subject: [PATCH] configure.ac: link crypotpp as a static library We want to build -native for a 32 bit machine but have issues with certain distributions 32bit libcryptopp.so. So link against our own build of a 32bit libcryptopp.a --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 943654f..89d75dd 100644 --- a/configure.ac +++ b/configure.ac @@ -20,7 +20,7 @@ AC_CHECK_LIB([pthread], PKG_CHECK_MODULES([LIBUSB], [libusb-1.0 >= 1.0.9]) AC_LANG(C++) SAVED_LDFLAGS=$LDFLAGS -LDFLAGS="$LDFLAGS -lcryptopp -lpthread" +LDFLAGS="$LDFLAGS -Wl,-Bstatic -lcryptopp -Wl,-Bdynamic -lpthread" CRYPTOLIB= AC_LINK_IFELSE( [AC_LANG_PROGRAM([#include ], -- 2.13.6