From: Denys Dmytriyenko <[email protected]> This patch has already been submitted to oe-core.
Signed-off-by: Denys Dmytriyenko <[email protected]> --- .../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 diff --git a/meta-arago-extras/recipes-kernel/cryptodev/cryptodev-tests_1.6.bb b/meta-arago-extras/recipes-kernel/cryptodev/cryptodev-tests_1.6.bb index 618e6e5..9688c87 100644 --- a/meta-arago-extras/recipes-kernel/cryptodev/cryptodev-tests_1.6.bb +++ b/meta-arago-extras/recipes-kernel/cryptodev/cryptodev-tests_1.6.bb @@ -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 diff --git a/meta-arago-extras/recipes-kernel/cryptodev/files/0002-Fix-tests-Makefile-usage-of-LDLIBS-vs.-LDFLAGS.patch b/meta-arago-extras/recipes-kernel/cryptodev/files/0002-Fix-tests-Makefile-usage-of-LDLIBS-vs.-LDFLAGS.patch new file mode 100644 index 0000000..f5ab8b4 --- /dev/null +++ b/meta-arago-extras/recipes-kernel/cryptodev/files/0002-Fix-tests-Makefile-usage-of-LDLIBS-vs.-LDFLAGS.patch @@ -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 + -- 1.9.1 _______________________________________________ meta-arago mailing list [email protected] http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
