]> code.ossystems Code Review - meta-freescale.git/blob
68c48e0c897a349f02d2c8ff487cc112ca5afbb0
[meta-freescale.git] /
1 From da730106c2558c8e0c8e1b1b1812d32ef9574ab7 Mon Sep 17 00:00:00 2001
2 From: Phil Sutter <phil@nwl.cc>
3 Date: Sat, 11 Apr 2015 12:45:05 +0200
4 Subject: [PATCH 2/4] tests/Makefile: fix arg passing to CC in implicit rule
5
6 GCC docs suggest passing -lfoo after object files referring to functions
7 in libfoo. Therefore use LDLIBS to specify libraries, which puts them at
8 the right place when make calls CC implicitly.
9
10 Signed-off-by: Phil Sutter <phil@nwl.cc>
11 ---
12  tests/Makefile | 2 +-
13  1 file changed, 1 insertion(+), 1 deletion(-)
14
15 diff --git a/tests/Makefile b/tests/Makefile
16 index c9f04e8..20c52ba 100644
17 --- a/tests/Makefile
18 +++ b/tests/Makefile
19 @@ -31,5 +31,5 @@ check: $(hostprogs)
20  clean:
21         rm -f *.o *~ $(hostprogs)
22  
23 -${comp_progs}: LDFLAGS += -lssl -lcrypto
24 +${comp_progs}: LDLIBS += -lssl -lcrypto
25  ${comp_progs}: %: %.o openssl_wrapper.o
26 -- 
27 2.3.5
28