0001-Build-buildconfig-for-the-host.patch 873 B

12345678910111213141516171819202122232425
  1. buildconfig is meant to be executed on the host, so it has to be compiled
  2. using $(HOSTCC), not $(CC).
  3. Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
  4. [Bernd: rebased for version 4.97.1]
  5. Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
  6. ---
  7. OS/Makefile-Base | 4 ++--
  8. 1 files changed, 2 insertions(+), 2 deletions(-)
  9. diff --git a/OS/Makefile-Base b/OS/Makefile-Base
  10. index 29a6ad3..420ba60 100644
  11. --- a/OS/Makefile-Base
  12. +++ b/OS/Makefile-Base
  13. @@ -258,8 +258,8 @@ allexim: config.h $(EXIM_MONITOR) exicyclog exinext exiwhat \
  14. # Targets for special-purpose configuration header builders
  15. buildconfig: buildconfig.c
  16. - @echo "$(CC) buildconfig.c"
  17. - $(FE)$(CC) $(CFLAGS) $(INCLUDE) -o buildconfig buildconfig.c $(LIBS)
  18. + @echo "$(HOSTCC) buildconfig.c"
  19. + $(FE)$(HOSTCC) $(HOSTCFLAGS) $(INCLUDE) -o buildconfig buildconfig.c
  20. # Target for the exicyclog utility script