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.

53 lines
2.1 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. [svlobanov: updated for erlang-24.2]
  17. ---
  18. erts/emulator/Makefile.in | 8 ++++----
  19. 1 file changed, 4 insertions(+), 4 deletions(-)
  20. --- a/erts/emulator/Makefile.in
  21. +++ b/erts/emulator/Makefile.in
  22. @@ -800,7 +800,7 @@ endif
  23. # Usually the same as the default rule, but certain platforms (e.g. win32) mix
  24. # different compilers
  25. $(OBJDIR)/beam_emu.o: beam/emu/beam_emu.c
  26. - $(V_EMU_CC) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) $(INCLUDES) -c $< -o $@
  27. + $(V_EMU_CC) $(INCLUDES) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) -c $< -o $@
  28. $(OBJDIR)/beam_emu.S: beam/emu/beam_emu.c
  29. $(V_EMU_CC) -S -fverbose-asm $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) $(INCLUDES) -c $< -o $@
  30. @@ -863,13 +863,13 @@ endif
  31. # General targets
  32. #
  33. $(OBJDIR)/%.o: beam/%.c
  34. - $(V_CC) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) $(INCLUDES) -c $< -o $@
  35. + $(V_CC) $(INCLUDES) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) -c $< -o $@
  36. $(OBJDIR)/%.o: beam/emu/%.c
  37. - $(V_CC) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) $(INCLUDES) -c $< -o $@
  38. + $(V_CC) $(INCLUDES) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) -c $< -o $@
  39. $(OBJDIR)/%.o: beam/jit/%.c
  40. - $(V_CC) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) $(INCLUDES) -c $< -o $@
  41. + $(V_CC) $(INCLUDES) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) -c $< -o $@
  42. $(OBJDIR)/%.o: $(TARGET)/%.c
  43. $(V_CC) $(CFLAGS) $(INCLUDES) -Idrivers/common -c $< -o $@