# HG changeset patch # User Masamichi Hosoda # Date 1427637706 -32400 # Node ID 3622fffbaeb7c27226c797532abc490bedec0cb3 # Parent 754346b9dc1daf3a929570c7ecc532b0a819c7ee Fix building ghostscript on 32 bit GUB environment In cross compiling on 64 bit hosts, genconf generated arch.h's ARCH_SIZEOF_GX_COLOR_INDEX is 8 (unsigned long). configure generated GX_COLOR_INDEX is 8 (unsigned long long). In cross compiling on 32 bit hosts, genconf generated arch.h's ARCH_SIZEOF_GX_COLOR_INDEX is 4 (unsigned long). configure genarated GX_COLOR_INDEX is 8 (unsigned long long). diff -r 754346b9dc1d -r 3622fffbaeb7 gub/specs/ghostscript.py --- a/gub/specs/ghostscript.py Tue Mar 24 22:59:38 2015 +0900 +++ b/gub/specs/ghostscript.py Sun Mar 29 23:01:46 2015 +0900 @@ -167,6 +167,8 @@ '#define ARCH_LOG2_SIZEOF_LONG %(log2_sizeof_long)d' % locals ()), ('#define ARCH_SIZEOF_PTR [0-9]', '#define ARCH_SIZEOF_PTR %(sizeof_ptr)d' % locals ()), + ('#define ARCH_SIZEOF_GX_COLOR_INDEX [0-9]', + '#define ARCH_SIZEOF_GX_COLOR_INDEX 8'), ], '%(builddir)s/%(obj)s/arch.h') def configure (self):