aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Luca Ceresoli <luca@lucaceresoli.net>2020-02-10 22:48:40 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2020-02-11 23:30:20 +0100
commita4dba4b40def74a5d0a3d8d0cd5b23ac64990c30 (patch)
tree3caeae2c0e1cf254fb3eb923cd336e6f892f8f69
parent4079874e9b74cb87669e925882b663b33b04831e (diff)
downloadbuildroot-a4dba4b40def74a5d0a3d8d0cd5b23ac64990c30.tar.gz
buildroot-a4dba4b40def74a5d0a3d8d0cd5b23ac64990c30.tar.bz2
package/exim: fix build error during install step
exim builds some files during the 'make install' step, and these fail with an error: lookups/lf_quote.c:49:3: error: 'for' loop initial declarations are only allowed in C99 mode for (int j = 0; j < vlength; j++) ^ Fix by passing the -std=c99 here, as it is already passed in the build step. Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Cc: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/exim/exim.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/exim/exim.mk b/package/exim/exim.mk
index 0ad9a8de80..e4b0bfc1b4 100644
--- a/package/exim/exim.mk
+++ b/package/exim/exim.mk
@@ -135,7 +135,9 @@ endef
# something when installing...
define EXIM_INSTALL_TARGET_CMDS
DESTDIR=$(TARGET_DIR) INSTALL_ARG="-no_chown -no_symlink" build=br \
- $(MAKE1) -C $(@D) $(EXIM_STATIC_FLAGS) install
+ $(MAKE1) -C $(@D) $(EXIM_STATIC_FLAGS) \
+ CFLAGS="-std=c99 $(TARGET_CFLAGS)" \
+ install
chmod u+s $(TARGET_DIR)/usr/sbin/exim
endef