summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRene Engelhard <rene@debian.org>2011-08-23 11:35:15 +0200
committerRene Engelhard <rene@debian.org>2011-08-23 18:15:13 +0200
commit260088aaf09b852d793105115c00ad9862f21e34 (patch)
treeb4187e37c6f8c7cbf27d5ede36526e84edf83f7c
parentb6b188fd6c77492dbe4cb6062ec9e7b55a3f7869 (diff)
export WORDS_BIGENDIAN in set_soenv and make graphite2 use it
-rw-r--r--graphite/graphite_make.patch6
-rwxr-xr-xset_soenv.in1
2 files changed, 6 insertions, 1 deletions
diff --git a/graphite/graphite_make.patch b/graphite/graphite_make.patch
index 73b62055df7e..c137c127b05e 100644
--- a/graphite/graphite_make.patch
+++ b/graphite/graphite_make.patch
@@ -1,6 +1,6 @@
--- misc/build/graphite2-1.0.2/src/makefile.mk Fri Mar 4 10:20:30 2011 +0700
+++ misc/build/graphite2-1.0.2/src/makefile.mk Fri Mar 4 10:20:30 2011 +0700
-@@ -1,1 +1,34 @@
+@@ -1,1 +1,38 @@
-dummy
+EXTERNAL_WARNINGS_NOT_ERRORS := TRUE
+
@@ -18,6 +18,10 @@
+CFLAGS+=-O3 -DNDEBUG
+.ENDIF
+
++.IF "$(WORDS_BIGENDIAN)" == "yes"
++CFLAGS += -DWORDS_BIGENDIAN
++.ENDIF
++
+_NS := GR2
+
+GR2_MACHINE=call
diff --git a/set_soenv.in b/set_soenv.in
index 7b574adfc17a..4f6bff9a9950 100755
--- a/set_soenv.in
+++ b/set_soenv.in
@@ -1825,6 +1825,7 @@ ToFile( "ALIGNOF_SHORT", "@ALIGNOF_SHORT@", "e" );
ToFile( "ALIGNOF_INT", "@ALIGNOF_INT@", "e" );
ToFile( "ALIGNOF_LONG", "@ALIGNOF_LONG@", "e" );
ToFile( "ALIGNOF_DOUBLE", "@ALIGNOF_DOUBLE@", "e" );
+ToFile( "WORDS_BIGENDIAN", "@WORDS_BIGENDIAN@", "e" );
ToFile( "HAVE_GCC_NO_LONG_DOUBLE", "@HAVE_GCC_NO_LONG_DOUBLE@", "e" );
ToFile( "HAVE_GCC_AVX", "@HAVE_GCC_AVX@", "e" );
ToFile( "HAVE_GCC_VISIBILITY_FEATURE",