aboutsummaryrefslogtreecommitdiffstats
path: root/meta-cgl-common/recipes-cgl/racoon2/racoon2/racoon2-iked-needs-libcrypto.patch
blob: 0c57c65afca7a2658c995d41723ee0f14662406a (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
29
30
31
32
33
34
iked needs libcrypto

Add libcrypto to the list of LIBS for iked to avoid undefined reference
errors during compilation.

If add libcrypto to the list of LDFLAGS, the result is same as "gcc  -lcrypto
-o eaytest eaytest.o crypto_openssl.o str2val.o", since the linker searchs an
archive only once, at the location where it is specified on the command line,
crypto_openssl.o will report undefined symbol which is defined in libcrypto

Upstream-Status: Pending

Signed-off-by: Aws Ismail <aws.ismail@windriver.com>
Signed-off-by: Roy.Li <rongqing.li@windriver.com> 
---
 iked/Makefile.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/iked/Makefile.in b/iked/Makefile.in
index 57134f3..5a9160c 100644
--- a/iked/Makefile.in
+++ b/iked/Makefile.in
@@ -56,7 +56,7 @@ OBJS += @CRYPTOBJS@
 TESTSRC = eaytest.c
 TESTOBJ = $(TESTSRC:%.c=%.o)
 
-LIBS = @LIBS@
+LIBS = @LIBS@ -lcrypto
 LIBRARIES = @LIBRARIES@
 
 MAN = iked.8
-- 
1.7.1