0001-usr-local-include.patch 857 B

123456789101112131415161718192021222324252627
  1. Do not add (possibly poisoned) /usr/local/include and /usr/local/lib
  2. to gcc and ld search paths in configure.
  3. With BR2_COMPILER_PARANOID_UNSAFE_PATH enabled, poisoned paths result
  4. in hard errors, failing affected configure tests.
  5. Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
  6. --- a/configure.ac
  7. +++ b/configure.ac
  8. @@ -57,16 +57,6 @@
  9. AC_TYPE_INT32_T
  10. AC_TYPE_UINT32_T
  11. -dnl --------------------------------------
  12. -dnl Check whether to add /usr/local or not
  13. -dnl (this is somewhat a religious problem)
  14. -dnl --------------------------------------
  15. -dnl
  16. -if test "`$CPP -v < /dev/null 2>&1 | grep '/usr/local/include' 2>&1`" = ""; then
  17. - CPPFLAGS="$CPPFLAGS -I/usr/local/include"
  18. - LDFLAGS="$LDFLAGS -L/usr/local/lib"
  19. -fi
  20. -
  21. dnl ------------------------------------
  22. dnl Check for socket libs (AIX, Solaris)
  23. dnl ------------------------------------