summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2012-10-05 14:55:40 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2012-10-05 14:57:14 +0200
commitd9ae7573083343b8db7fd65b5677a2132bd2e1e8 (patch)
tree13f8d8d37e4cc3e7d78161c73d18472955fcbc55
parentf7bfe52ae5cc12ce8198cb01837c875955ac4a6a (diff)
It seems that we have endianness problem in internal lcms2
Change-Id: I1bec67344ddd5d1caf417355fafd344f48517f77
-rw-r--r--lcms2/lcms2-endian.patch17
-rw-r--r--lcms2/makefile.mk2
2 files changed, 18 insertions, 1 deletions
diff --git a/lcms2/lcms2-endian.patch b/lcms2/lcms2-endian.patch
new file mode 100644
index 000000000000..01ffc1cb300a
--- /dev/null
+++ b/lcms2/lcms2-endian.patch
@@ -0,0 +1,17 @@
+--- misc/lcms2-2.3/include/lcms2.h 2011-12-15 16:45:47.000000000 +0100
++++ misc/build/lcms2-2.3/include/lcms2.h 2012-10-05 14:49:09.721146003 +0200
+@@ -30,8 +30,12 @@
+
+ // ********** Configuration toggles ****************************************
+
+-// Uncomment this one if you are using big endian machines
+-// #define CMS_USE_BIG_ENDIAN 1
++#ifndef _WIN32
++#include <endian.h>
++#if __BYTE_ORDER == __BIG_ENDIAN
++#define USE_BIG_ENDIAN 1
++#endif
++#endif /* !_WIN32 */
+
+ // Uncomment this one if your compiler/machine does NOT support the
+ // "long long" type.
diff --git a/lcms2/makefile.mk b/lcms2/makefile.mk
index 52b7b4a93b65..9260ad4de5a1 100644
--- a/lcms2/makefile.mk
+++ b/lcms2/makefile.mk
@@ -39,7 +39,7 @@ TARGET=so_lcms2
TARFILE_NAME=lcms2-2.3
TARFILE_MD5=327348d67c979c88c2dec59a23a17d85
-PATCH_FILES = lcms2.patch
+PATCH_FILES = lcms2.patch lcms2-endian.patch
.IF "$(SYSTEM_LCMS2)" == "YES"
@all: