summaryrefslogtreecommitdiff
path: root/recipes-bsp/tegrarcm/tegrarcm/0001-configure.ac-link-crypotpp-as-a-static-library.patch
blob: cee5bc3003d34d156a9ab21ba754476b2fdce122 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 9f60bf915ca239c28e3b35a15867eefb4d1da3f7 Mon Sep 17 00:00:00 2001
From: Max Krummenacher <max.krummenacher@toradex.com>
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 <cryptopp/cryptlib.h>],
-- 
2.13.6