Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame^] | 1 | From 47ff1eb9bb4f872c1d731b93d334ee5865bf3439 Mon Sep 17 00:00:00 2001 |
| 2 | From: Denys Dmytriyenko <denys@ti.com> |
| 3 | Date: Sun, 6 Apr 2014 22:16:30 -0400 |
| 4 | Subject: [PATCH] Fix tests Makefile usage of LDLIBS vs. LDFLAGS |
| 5 | |
| 6 | Libraries must come after objects, as link order matters, especially |
| 7 | when using linker flags like -Wl,--as-needed. |
| 8 | |
| 9 | Signed-off-by: Denys Dmytriyenko <denys@ti.com> |
| 10 | |
| 11 | Upstream-Status: Pending |
| 12 | --- |
| 13 | tests/Makefile | 2 +- |
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 15 | |
| 16 | diff --git a/tests/Makefile b/tests/Makefile |
| 17 | index cd202af..67c3c83 100644 |
| 18 | --- a/tests/Makefile |
| 19 | +++ b/tests/Makefile |
| 20 | @@ -39,5 +39,5 @@ testprogs: $(hostprogs) |
| 21 | clean: |
| 22 | rm -f *.o *~ $(hostprogs) |
| 23 | |
| 24 | -${comp_progs}: LDFLAGS += -lssl -lcrypto |
| 25 | +${comp_progs}: LDLIBS += -lssl -lcrypto |
| 26 | ${comp_progs}: %: %.o openssl_wrapper.o |
| 27 | -- |
| 28 | 1.9.1 |
| 29 | |