Skip to contentSkip to conversation

cryptdev-tests: fix LDFLAGS vs. LDLIBS usage

PATCH New Denys Dmytriyenko 1 participant 1 message Apr 8, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cryptdev-tests: fix LDFLAGS vs. LDLIBS usage

From: Denys Dmytriyenko <[email protected]>

This patch has already been submitted to oe-core.

---
 .../cryptodev/cryptodev-tests_1.6.bb               |  7 ++++--
 ...ests-Makefile-usage-of-LDLIBS-vs.-LDFLAGS.patch | 29 ++++++++++++++++++++++
 2 files changed, 34 insertions(+), 2 deletions(-)
 create mode 100644 meta-arago-extras/recipes-kernel/cryptodev/files/0002-Fix-tests-Makefile-usage-of-LDLIBS-vs.-LDFLAGS.patch
meta-arago-extras/recipes-kernel/cryptodev/cryptodev-tests_1.6.bb +5 -2
index 618e6e5..9688c87 100644
@@ -3,10 +3,13 @@ require cryptodev_${PV}.inc
 SUMMARY = "Linux Cryptodev Test Suite"
 DESCRIPTION = "The Cryptodev package contains the test apps"
 
-PR = "r0"
+PR = "r1"
 DEPENDS += "openssl"
 
-SRC_URI += "file://Add-the-compile-and-install-rules-for-cryptodev-test.patch"
+SRC_URI += " \
+file://Add-the-compile-and-install-rules-for-cryptodev-test.patch \
+file://0002-Fix-tests-Makefile-usage-of-LDLIBS-vs.-LDFLAGS.patch \
+"
 
 do_compile() {
 	oe_runmake testprogs
meta-arago-extras/recipes-kernel/cryptodev/files/0002-Fix-tests-Makefile-usage-of-LDLIBS-vs.-LDFLAGS.patch new file +29 -0
new file mode 100644
index 0000000..f5ab8b4
@@ -0,0 +1,29 @@
+From 47ff1eb9bb4f872c1d731b93d334ee5865bf3439 Mon Sep 17 00:00:00 2001
+From: Denys Dmytriyenko <[email protected]>
+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 <[email protected]>
+
+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
+
Signature · 1 line
1.9.1