0001-Fix-compile-error-when-cross-compiling.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From daf96b07c02734dceaf3c3b78c10e4e758b74d9e Mon Sep 17 00:00:00 2001
  2. From: Sergio Prado <sergio.prado@e-labworks.com>
  3. Date: Fri, 18 Dec 2015 15:08:58 -0200
  4. Subject: [PATCH 1/1] Fix compile error when cross-compiling.
  5. When cross-compiling with libjpeg enabled, we can get errors like the
  6. following when linking:
  7. sh-linux-gnu-gcc: ERROR: unsafe header/library path used in
  8. cross-compilation: '/lib'
  9. That's because there is an error in the configure script that are not
  10. generating ldflags correctly, and are trying to link with -L/lib.
  11. Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
  12. ---
  13. configure.ac | 2 +-
  14. 1 file changed, 1 insertion(+), 1 deletion(-)
  15. diff --git a/configure.ac b/configure.ac
  16. index 772d5fc9d87a..58d55ade48e3 100644
  17. --- a/configure.ac
  18. +++ b/configure.ac
  19. @@ -223,7 +223,7 @@ AC_ARG_WITH([libjpeg],
  20. jpeg_ok=no)
  21. AC_MSG_RESULT($jpeg_ok)
  22. if test "$jpeg_ok" = yes; then
  23. - JPEG='jpeg'; LIBJPEG='-L${libjpeg_prefix}/lib -ljpeg'
  24. + JPEG='jpeg'; LIBJPEG="-L${libjpeg_prefix}/lib -ljpeg"
  25. else
  26. AC_MSG_WARN(*** JPEG loader will not be built (JPEG header file not found) ***)
  27. fi
  28. --
  29. 1.9.1