From 7c8c002c4804b6e0e25bc1eef604c0e0cf660858 Mon Sep 17 00:00:00 2001 From: Claudio Bley Date: Wed, 21 May 2014 15:25:40 +0200 Subject: [PATCH] Fix generation of headers when cross compiling Use the EXEEXT_FOR_BUILD when calling the generated desdata program, otherwise the build fails when cross compiling because keymap.h and rotors.h are not found. Signed-off-by: Claudio Bley --- Makefile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index e4d3738a..7ce8bb88 100644 --- a/Makefile.in +++ b/Makefile.in @@ -292,9 +292,9 @@ des_headers = rotors.h keymap.h # Generate DES headers. $(des_headers): desdata.c - $(MAKE) desdata$(EXEEXT) + $(MAKE) desdata$(EXEEXT_FOR_BUILD) f="$(srcdir)/`basename $@`"; \ - ./desdata$(EXEEXT) $(@F) > $${f}T; \ + ./desdata$(EXEEXT_FOR_BUILD) $(@F) > $${f}T; \ test -s $${f}T && mv -f $${f}T $$f des.$(OBJEXT): des.c des.h $(des_headers) -- GitLab