summaryrefslogtreecommitdiffstats
path: root/package/tinydtls/0002-Fix-compilation-of-tests-directory.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/tinydtls/0002-Fix-compilation-of-tests-directory.patch')
-rw-r--r--package/tinydtls/0002-Fix-compilation-of-tests-directory.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/package/tinydtls/0002-Fix-compilation-of-tests-directory.patch b/package/tinydtls/0002-Fix-compilation-of-tests-directory.patch
new file mode 100644
index 0000000000..0ab579c45e
--- /dev/null
+++ b/package/tinydtls/0002-Fix-compilation-of-tests-directory.patch
@@ -0,0 +1,31 @@
+From c629a108f5d03cd365c0ba71143ad507f6cd97f0 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fabrice.fontaine@orange.com>
+Date: Thu, 28 Jul 2016 08:36:06 +0200
+Subject: [PATCH] Fix compilation of tests directory
+
+binaries in tests subdirectory depends on libtinydtls so add $(LIB) dependency
+for dirs target in Makefile.in
+
+Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
+---
+ Makefile.in | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index 7dcd424..c493705 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -68,8 +68,8 @@ check:
+ echo top_builddir: $(top_builddir)
+ $(MAKE) -C tests check
+
+-dirs: $(SUBDIRS)
+- for dir in $^; do \
++dirs: $(LIB) $(SUBDIRS)
++ for dir in $(SUBDIRS); do \
+ $(MAKE) -C $$dir ; \
+ done
+
+--
+2.7.4
+
OpenPOWER on IntegriCloud