[PATCH] dropbear: support out-of-tree builds

Peter Krefting peter at softwolves.pp.se
Tue May 9 20:34:20 AWST 2017


Fixes issues with libtomcrypt and libtommath not finding config.h when
building out-of-tree.

---
 libtomcrypt/Makefile.in | 2 +-
 libtommath/Makefile.in  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libtomcrypt/Makefile.in b/libtomcrypt/Makefile.in
index 3056ef0..40dea1a 100644
--- a/libtomcrypt/Makefile.in
+++ b/libtomcrypt/Makefile.in
@@ -19,7 +19,7 @@ [email protected]@
 
 # Compilation flags. Note the += does not write over the user's CFLAGS!
 # The rest of the flags come from the parent Dropbear makefile
-CFLAGS += -c -I$(srcdir)/src/headers/ -I$(srcdir)/../ -DLTC_SOURCE -I$(srcdir)/../libtommath/
+CFLAGS += -c -I$(srcdir)/src/headers/ -I$(srcdir)/../ -DLTC_SOURCE -I$(srcdir)/../libtommath/ -I../
 
 # additional warnings (newer GCC 3.4 and higher)
 ifdef GCC_34
diff --git a/libtommath/Makefile.in b/libtommath/Makefile.in
index 06aba68..f6e34c2 100644
--- a/libtommath/Makefile.in
+++ b/libtommath/Makefile.in
@@ -9,7 +9,7 @@ [email protected]@
 [email protected]@
 
 # So that libtommath can include Dropbear headers for options and m_burn()
-CFLAGS += -I$(srcdir)/../libtomcrypt/src/headers/ -I$(srcdir)/../
+CFLAGS += -I$(srcdir)/ -I$(srcdir)/../libtomcrypt/src/headers/ -I$(srcdir)/../ -I../
 
 ifndef IGNORE_SPEED
 
-- 
2.12.0


More information about the Dropbear mailing list