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
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.
10 Signed-off-by: Phil Sutter <phil@nwl.cc>
13 1 file changed, 1 insertion(+), 1 deletion(-)
15 diff --git a/tests/Makefile b/tests/Makefile
16 index c9f04e8..20c52ba 100644
19 @@ -31,5 +31,5 @@ check: $(hostprogs)
21 rm -f *.o *~ $(hostprogs)
23 -${comp_progs}: LDFLAGS += -lssl -lcrypto
24 +${comp_progs}: LDLIBS += -lssl -lcrypto
25 ${comp_progs}: %: %.o openssl_wrapper.o