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 @@ | |||
1 | configure will check endianness of build machine. When cross compile it fails. | ||
2 | So remove the check for Yocto. | ||
3 | |||
4 | Upstream-Status: Pending | ||
5 | |||
6 | Signed-off-by: Kang Kai <kai.kang@windriver.com> | ||
7 | |||
8 | --- ghostscript-9.05/configure.ac.orig 2012-03-14 15:28:30.828956872 +0800 | ||
9 | +++ ghostscript-9.05/configure.ac 2012-03-14 15:29:05.060957357 +0800 | ||
10 | @@ -1739,25 +1739,25 @@ | ||
11 | dnl check for big/little endian for LCMS | ||
12 | dnl -------------------------------------------------- | ||
13 | |||
14 | -AC_MSG_CHECKING([for big endian]) | ||
15 | - | ||
16 | -AC_RUN_IFELSE( | ||
17 | - [AC_LANG_PROGRAM([#include <stdio.h>], [ | ||
18 | - static const int one = 1; | ||
19 | - return (*(char*)&one == 0 ? 0 : 1); | ||
20 | - ])], | ||
21 | - [LCMS_BIGENDIAN=1], | ||
22 | - [LCMS_BIGENDIAN=0]) | ||
23 | - | ||
24 | -if test "x$LCMS_BIGENDIAN" != "x0"; then | ||
25 | - LCMS_ENDIAN="-DUSE_BIG_ENDIAN=$LCMS_BIGENDIAN" | ||
26 | - LCMS2_ENDIAN="-DCMS_USE_BIG_ENDIAN=$LCMS_BIGENDIAN" | ||
27 | - AC_MSG_RESULT(yes) | ||
28 | -else | ||
29 | - LCMS_ENDIAN= | ||
30 | - LCMS2_ENDIAN= | ||
31 | - AC_MSG_RESULT(no) | ||
32 | -fi | ||
33 | +dnl AC_MSG_CHECKING([for big endian]) | ||
34 | +dnl | ||
35 | +dnl AC_RUN_IFELSE( | ||
36 | +dnl [AC_LANG_PROGRAM([#include <stdio.h>], [ | ||
37 | +dnl static const int one = 1; | ||
38 | +dnl return (*(char*)&one == 0 ? 0 : 1); | ||
39 | +dnl ])], | ||
40 | +dnl [LCMS_BIGENDIAN=1], | ||
41 | +dnl [LCMS_BIGENDIAN=0]) | ||
42 | +dnl | ||
43 | +dnl if test "x$LCMS_BIGENDIAN" != "x0"; then | ||
44 | +dnl LCMS_ENDIAN="-DUSE_BIG_ENDIAN=$LCMS_BIGENDIAN" | ||
45 | +dnl LCMS2_ENDIAN="-DCMS_USE_BIG_ENDIAN=$LCMS_BIGENDIAN" | ||
46 | +dnl AC_MSG_RESULT(yes) | ||
47 | +dnl else | ||
48 | +dnl LCMS_ENDIAN= | ||
49 | +dnl LCMS2_ENDIAN= | ||
50 | +dnl AC_MSG_RESULT(no) | ||
51 | +dnl fi | ||
52 | |||
53 | |||
54 | AC_SUBST(LCMS_ENDIAN) | ||