0002-configure-Don-t-use-host-CPP.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From fc5c889131ff6270e1028cc7edd87e7f10a7da6d Mon Sep 17 00:00:00 2001
  2. From: Romain Naour <romain.naour@openwide.fr>
  3. Date: Thu, 22 Jan 2015 15:21:31 +0100
  4. Subject: [PATCH 2/6] configure: Don't use host CPP
  5. CPP is redefined if a cpp binary (/lib/cpp) is found on the host.
  6. Use the CPP="${CC} -E" allows to pass the following checks:
  7. Check if we can use asm code (for -DASMV)
  8. Check if compiler generates underlines (for -DASM_CRC)
  9. Signed-off-by: Romain Naour <romain.naour@openwide.fr>
  10. ---
  11. unix/configure | 7 -------
  12. 1 file changed, 7 deletions(-)
  13. diff --git a/unix/configure b/unix/configure
  14. index 4185fee..489009f 100644
  15. --- a/unix/configure
  16. +++ b/unix/configure
  17. @@ -122,13 +122,6 @@ fi
  18. echo Check for the C preprocessor
  19. # on SVR4, cc -E does not produce correct assembler files. Need /lib/cpp.
  20. CPP="${CC} -E"
  21. -# solaris as(1) needs -P, maybe others as well ?
  22. -[ -f /usr/ccs/lib/cpp ] && CPP="/usr/ccs/lib/cpp -P"
  23. -[ -f /usr/lib/cpp ] && CPP=/usr/lib/cpp
  24. -[ -f /lib/cpp ] && CPP=/lib/cpp
  25. -[ -f /usr/bin/cpp ] && CPP=/usr/bin/cpp
  26. -[ -f /xenix ] && CPP="${CC} -E"
  27. -[ -f /lynx.os ] && CPP="${CC} -E"
  28. echo "#include <stdio.h>" > conftest.c
  29. $CPP conftest.c >/dev/null 2>/dev/null || CPP="${CC} -E"
  30. --
  31. 1.9.3