# HG changeset patch # User Masamichi Hosoda # Date 1426172401 -32400 # Node ID 85ac5adedcfbf5e6456336f7a8c7d3be10a2f232 # Parent e4d18fbabde2d902a527988d9b98acc045d26ec2 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 diff -r e4d18fbabde2 -r 85ac5adedcfb gub/specs/ghostscript.py --- 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]',