summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/cryptodev/files/0002-Fix-tests-Makefile-usage-of-LDLIBS-vs.-LDFLAGS.patch
blob: f5ab8b4f967a67de8b4947c28bb16d3a0b4174b1 (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
From 47ff1eb9bb4f872c1d731b93d334ee5865bf3439 Mon Sep 17 00:00:00 2001
From: Denys Dmytriyenko <denys@ti.com>
Date: Sun, 6 Apr 2014 22:16:30 -0400
Subject: [PATCH] Fix tests Makefile usage of LDLIBS vs. LDFLAGS

Libraries must come after objects, as link order matters, especially
when using linker flags like -Wl,--as-needed.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>

Upstream-Status: Pending
---
 tests/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/Makefile b/tests/Makefile
index cd202af..67c3c83 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -39,5 +39,5 @@ testprogs: $(hostprogs)
 clean:
 	rm -f *.o *~ $(hostprogs)
 
-${comp_progs}: LDFLAGS += -lssl -lcrypto
+${comp_progs}: LDLIBS += -lssl -lcrypto
 ${comp_progs}: %: %.o openssl_wrapper.o
-- 
1.9.1