You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.7 KiB

  1. From 85a3e5b4f65e5284e59dcdd90e92ea7d50ef6907 Mon Sep 17 00:00:00 2001
  2. From: Romain Naour <romain.naour@openwide.fr>
  3. Date: Sun, 8 Feb 2015 17:23:13 +0100
  4. Subject: [PATCH] erts/emulator: reorder inclued headers paths
  5. If the Perl Compatible Regular Expressions is installed on the
  6. host and the path to the headers is added to the CFLAGS, the
  7. pcre.h from the host is used instead of the one provided by
  8. erlang.
  9. Erlang use an old version of this file which is incompatible
  10. with the upstream one.
  11. Move INCLUDES before CFLAGS to use pcre.h from erlang.
  12. http://autobuild.buildroot.net/results/cbd/cbd8b54eef535f19d7d400fd269af1b3571d6143/build-end.log
  13. Signed-off-by: Romain Naour <romain.naour@openwide.fr>
  14. [Bernd: rebased for erlang-21.0]
  15. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  16. ---
  17. erts/emulator/Makefile.in | 4 ++--
  18. 1 file changed, 2 insertions(+), 2 deletions(-)
  19. --- a/erts/emulator/Makefile.in
  20. +++ b/erts/emulator/Makefile.in
  21. @@ -751,7 +751,7 @@ endif
  22. # Usually the same as the default rule, but certain platforms (e.g. win32) mix
  23. # different compilers
  24. $(OBJDIR)/beam_emu.o: beam/beam_emu.c
  25. - $(V_EMU_CC) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) $(INCLUDES) -c $< -o $@
  26. + $(V_EMU_CC) $(INCLUDES) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) -c $< -o $@
  27. $(OBJDIR)/beam_emu.S: beam/beam_emu.c
  28. $(V_EMU_CC) -S -fverbose-asm $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) $(INCLUDES) -c $< -o $@
  29. @@ -804,7 +804,7 @@ endif
  30. # General targets
  31. #
  32. $(OBJDIR)/%.o: beam/%.c
  33. - $(V_CC) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) $(INCLUDES) -c $< -o $@
  34. + $(V_CC) $(INCLUDES) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) -c $< -o $@
  35. $(OBJDIR)/%.o: $(TARGET)/%.c
  36. $(V_CC) $(CFLAGS) $(INCLUDES) -Idrivers/common -c $< -o $@