diff options
Diffstat (limited to 'recipes-kernel/cryptodev/files/0002-Fix-tests-Makefile-usage-of-LDLIBS-vs.-LDFLAGS.patch')
| -rw-r--r-- | recipes-kernel/cryptodev/files/0002-Fix-tests-Makefile-usage-of-LDLIBS-vs.-LDFLAGS.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/recipes-kernel/cryptodev/files/0002-Fix-tests-Makefile-usage-of-LDLIBS-vs.-LDFLAGS.patch b/recipes-kernel/cryptodev/files/0002-Fix-tests-Makefile-usage-of-LDLIBS-vs.-LDFLAGS.patch new file mode 100644 index 000000000..f5ab8b4f9 --- /dev/null +++ b/recipes-kernel/cryptodev/files/0002-Fix-tests-Makefile-usage-of-LDLIBS-vs.-LDFLAGS.patch | |||
| @@ -0,0 +1,29 @@ | |||
| 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 | |||
