poky/meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.05-NOT-check-endian.patch
Richard Purdie 50466b6cc3 ghostscript: Fix patch related build issues
The file ${S}/configure.ac is a symlink which seems to confuse some patch
application tools but not in all cases. Whilst I'd love to understand why
there is a difference, this fixes the build failures by applying the patch
to the real file rather than the symlink.

(From OE-Core rev: 34f3127bac9e5a15c33d21a6a6ac83c6060dcac9)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-15 00:11:40 +00:00

55 lines
1.4 KiB
Diff

configure will check endianness of build machine. When cross compile it fails.
So remove the check for Yocto.
Upstream-Status: Pending
Signed-off-by: Kang Kai <kai.kang@windriver.com>
--- ghostscript-9.05/base/configure.ac.orig 2012-03-14 15:28:30.828956872 +0800
+++ ghostscript-9.05/base/configure.ac 2012-03-14 15:29:05.060957357 +0800
@@ -1739,25 +1739,25 @@
dnl check for big/little endian for LCMS
dnl --------------------------------------------------
-AC_MSG_CHECKING([for big endian])
-
-AC_RUN_IFELSE(
- [AC_LANG_PROGRAM([#include <stdio.h>], [
- static const int one = 1;
- return (*(char*)&one == 0 ? 0 : 1);
- ])],
- [LCMS_BIGENDIAN=1],
- [LCMS_BIGENDIAN=0])
-
-if test "x$LCMS_BIGENDIAN" != "x0"; then
- LCMS_ENDIAN="-DUSE_BIG_ENDIAN=$LCMS_BIGENDIAN"
- LCMS2_ENDIAN="-DCMS_USE_BIG_ENDIAN=$LCMS_BIGENDIAN"
- AC_MSG_RESULT(yes)
-else
- LCMS_ENDIAN=
- LCMS2_ENDIAN=
- AC_MSG_RESULT(no)
-fi
+dnl AC_MSG_CHECKING([for big endian])
+dnl
+dnl AC_RUN_IFELSE(
+dnl [AC_LANG_PROGRAM([#include <stdio.h>], [
+dnl static const int one = 1;
+dnl return (*(char*)&one == 0 ? 0 : 1);
+dnl ])],
+dnl [LCMS_BIGENDIAN=1],
+dnl [LCMS_BIGENDIAN=0])
+dnl
+dnl if test "x$LCMS_BIGENDIAN" != "x0"; then
+dnl LCMS_ENDIAN="-DUSE_BIG_ENDIAN=$LCMS_BIGENDIAN"
+dnl LCMS2_ENDIAN="-DCMS_USE_BIG_ENDIAN=$LCMS_BIGENDIAN"
+dnl AC_MSG_RESULT(yes)
+dnl else
+dnl LCMS_ENDIAN=
+dnl LCMS2_ENDIAN=
+dnl AC_MSG_RESULT(no)
+dnl fi
AC_SUBST(LCMS_ENDIAN)