summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/dropbear/dropbear/0007-fix-localoptions-search-path.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/dropbear/dropbear/0007-fix-localoptions-search-path.patch')
-rw-r--r--meta/recipes-core/dropbear/dropbear/0007-fix-localoptions-search-path.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/meta/recipes-core/dropbear/dropbear/0007-fix-localoptions-search-path.patch b/meta/recipes-core/dropbear/dropbear/0007-fix-localoptions-search-path.patch
new file mode 100644
index 0000000000..02a6cf9268
--- /dev/null
+++ b/meta/recipes-core/dropbear/dropbear/0007-fix-localoptions-search-path.patch
@@ -0,0 +1,51 @@
1From a63288c4d203850110a5a72d27fa0d7202ceadbc Mon Sep 17 00:00:00 2001
2From: Andrej Valek <andrej.valek@siemens.com>
3Date: Tue, 10 Apr 2018 12:30:09 +0200
4Subject: [PATCH] fix localoptions.h searching in out of tree building
5
6When dropbear is build out of tree, is necessary to search for localoptions
7header file is source directory.
8
9Upstream-Status: Submitted [https://github.com/mkj/dropbear/pull/62]
10
11Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
12---
13 Makefile.in | 8 ++++----
14 1 file changed, 4 insertions(+), 4 deletions(-)
15
16diff --git a/Makefile.in b/Makefile.in
17index e7d52a2..a615896 100644
18--- a/Makefile.in
19+++ b/Makefile.in
20@@ -17,6 +17,9 @@ STATIC_LTM=libtommath/libtommath.a
21
22 LIBTOM_LIBS=@LIBTOM_LIBS@
23
24+VPATH=@srcdir@
25+srcdir=@srcdir@
26+
27 ifeq (@BUNDLED_LIBTOM@, 1)
28 LIBTOM_DEPS=$(STATIC_LTC) $(STATIC_LTM)
29 LIBTOM_CLEAN=ltc-clean ltm-clean
30@@ -25,7 +28,7 @@ LIBTOM_LIBS=$(STATIC_LTC) $(STATIC_LTM)
31 endif
32
33 OPTION_HEADERS = default_options_guard.h sysoptions.h
34-ifneq ($(wildcard localoptions.h),)
35+ifneq ($(wildcard $(srcdir)/localoptions.h),)
36 CFLAGS+=-DLOCALOPTIONS_H_EXISTS
37 OPTION_HEADERS += localoptions.h
38 endif
39@@ -65,9 +68,6 @@ dropbearkeyobjs=$(COMMONOBJS) $(KEYOBJS)
40 dropbearconvertobjs=$(COMMONOBJS) $(CONVERTOBJS)
41 scpobjs=$(SCPOBJS)
42
43-VPATH=@srcdir@
44-srcdir=@srcdir@
45-
46 prefix=@prefix@
47 exec_prefix=@exec_prefix@
48 datarootdir = @datarootdir@
49--
502.11.0
51