changeset 6373:85ac5adedcfb

Fix linux-{64|x86}::ghostscript Force little endian on cross compile. This commit can success following commands. bin/gub linux-64::ghostscript bin/gub linux-x86::ghostscript
author Masamichi Hosoda <trueroad@users.noreply.github.com>
date Fri, 13 Mar 2015 00:00:01 +0900
parents e4d18fbabde2
children 8479e8595d51
files gub/specs/ghostscript.py
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/gub/specs/ghostscript.py	Thu Mar 12 23:01:16 2015 +0900
+++ b/gub/specs/ghostscript.py	Fri Mar 13 00:00:01 2015 +0900
@@ -47,6 +47,7 @@
 --without-jasper
 --disable-compile-inits
 --with-system-libtiff
+--enable-little-endian
 '''))
     compile_flags = (' INCLUDE=%(system_prefix)s/include'
                      + ' PSDOCDIR=%(prefix_dir)s/share/doc'
@@ -119,7 +120,6 @@
         # and send a patch that generates arch.h from configure.
 
         cache_size = 1024*1024
-        big_endian = 0
         can_shift = 1
         align_long_mod = 4
         align_ptr_mod = 4
@@ -127,11 +127,9 @@
         sizeof_ptr = 4
         
         if 'powerpc' in self.settings.target_architecture:
-            big_endian = 1
             can_shift = 1
             cache_size = 2097152
         elif re.search ('i[0-9]86', self.settings.target_architecture):
-            big_endian = 0
             can_shift = 0
             cache_size = 1048576
 
@@ -151,8 +149,6 @@
         
         # cannot use: must_succeed=5, they may be okay..
         self.file_sub ([
-             ('#define ARCH_IS_BIG_ENDIAN [0-9]',
-              '#define ARCH_IS_BIG_ENDIAN %(big_endian)d' % locals ()),
              ('#define ARCH_ALIGN_LONG_MOD [0-9]',
               '#define ARCH_ALIGN_LONG_MOD %(align_long_mod)d' % locals ()),
              ('#define ARCH_ALIGN_PTR_MOD [0-9]',