diff options
Diffstat (limited to 'meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.05-NOT-check-endian.patch')
-rw-r--r-- | meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.05-NOT-check-endian.patch | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.05-NOT-check-endian.patch b/meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.05-NOT-check-endian.patch new file mode 100644 index 0000000000..52353b50d5 --- /dev/null +++ b/meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.05-NOT-check-endian.patch @@ -0,0 +1,54 @@ +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/configure.ac.orig 2012-03-14 15:28:30.828956872 +0800 ++++ ghostscript-9.05/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) |