ncurses-5.9-no-I-usr-include.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. https://bugs.gentoo.org/522586
  2. delete the -I$includedir paths that get added to CPPFLAGS. these are never
  3. needed when building natively or cross-compiling and really get in the way
  4. in both cases (upgrades/cross-compiling/etc...).
  5. extracted from the upstream change:
  6. http://ncurses.scripts.mit.edu/?p=ncurses.git;a=commitdiff;h=9ee3995474454b7d956885e0fe5c8cac2ae25d42#patch5
  7. --- a/configure
  8. +++ b/configure
  9. @@ -18596,33 +18596,11 @@ CPPFLAGS="$CPPFLAGS -I. -I../include"
  10. if test "$srcdir" != "."; then
  11. CPPFLAGS="$CPPFLAGS -I\${srcdir}/../include"
  12. fi
  13. -if test "$GCC" != yes; then
  14. - CPPFLAGS="$CPPFLAGS -I\${includedir}"
  15. -elif test "$includedir" != "/usr/include"; then
  16. - if test "$includedir" = '${prefix}/include' ; then
  17. - if test $prefix != /usr ; then
  18. - CPPFLAGS="$CPPFLAGS -I\${includedir}"
  19. - fi
  20. - else
  21. - CPPFLAGS="$CPPFLAGS -I\${includedir}"
  22. - fi
  23. -fi
  24. ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
  25. if test "$srcdir" != "."; then
  26. ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
  27. fi
  28. -if test "$GCC" != yes; then
  29. - ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
  30. -elif test "$includedir" != "/usr/include"; then
  31. - if test "$includedir" = '${prefix}/include' ; then
  32. - if test $prefix != /usr ; then
  33. - ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
  34. - fi
  35. - else
  36. - ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
  37. - fi
  38. -fi
  39. ### Build up pieces for makefile rules
  40. echo "$as_me:18628: checking default library suffix" >&5