summaryrefslogtreecommitdiffhomepage
path: root/patches
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-05-09 21:31:29 -0400
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2019-05-10 06:58:17 +0000
commit2c2c5b1f48bd1a3ffff20e5b1d476f3b50f3dc85 (patch)
tree6d5855993de33d87306b4e11e33a452a1a002ec3 /patches
parentefc22a2160a99b53bdb7c58cc827e37ce6a0bfff (diff)
downloadmidipix_build-2c2c5b1f48bd1a3ffff20e5b1d476f3b50f3dc85.tar.bz2
midipix_build-2c2c5b1f48bd1a3ffff20e5b1d476f3b50f3dc85.tar.xz
ghostscript: work around ghostscript's incomplete support of cross-compilation.
Signed-off-by: Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de>
Diffstat (limited to 'patches')
-rw-r--r--patches/ghostscript-9.26.local.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/patches/ghostscript-9.26.local.patch b/patches/ghostscript-9.26.local.patch
index b38b40c7..e674d312 100644
--- a/patches/ghostscript-9.26.local.patch
+++ b/patches/ghostscript-9.26.local.patch
@@ -22,3 +22,35 @@ diff -ru ghostscript-9.26.orig/devices/devs.mak ghostscript-9.26/devices/devs.ma
$(DD)x11_.dev : $(x11_) $(GLD)bboxutil.dev $(GDEV) $(DEVS_MAK) $(MAKEDIRS)
$(SETMOD) $(DD)x11_ $(x11_)
$(ADDMOD) $(DD)x11_ -link $(XLIBDIRS)
+--- /dev/null 2019-05-07 18:48:18.199999973 -0400
++++ ghostscript-9.26/arch/x86_64-nt64-midipix.h 2019-05-09 22:02:33.196268736 -0400
+@@ -0,0 +1,29 @@
++#define ARCH_ALIGN_SHORT_MOD 2
++#define ARCH_ALIGN_INT_MOD 4
++#define ARCH_ALIGN_LONG_MOD 8
++#define ARCH_ALIGN_PTR_MOD 8
++#define ARCH_ALIGN_FLOAT_MOD 4
++#define ARCH_ALIGN_DOUBLE_MOD 8
++
++#define ARCH_LOG2_SIZEOF_CHAR 0
++#define ARCH_LOG2_SIZEOF_SHORT 1
++#define ARCH_LOG2_SIZEOF_INT 2
++#define ARCH_LOG2_SIZEOF_LONG 3
++#define ARCH_LOG2_SIZEOF_LONG_LONG 3
++#define ARCH_SIZEOF_GX_COLOR_INDEX 8
++#define ARCH_SIZEOF_PTR 8
++#define ARCH_SIZEOF_FLOAT 4
++#define ARCH_SIZEOF_DOUBLE 8
++#define ARCH_FLOAT_MANTISSA_BITS 24
++#define ARCH_DOUBLE_MANTISSA_BITS 53
++
++#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0)
++#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0)
++#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0)
++#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0)
++
++#define ARCH_IS_BIG_ENDIAN 0
++#define ARCH_PTRS_ARE_SIGNED 0
++#define ARCH_FLOATS_ARE_IEEE 1
++#define ARCH_ARITH_RSHIFT 2
++#define ARCH_DIV_NEG_POS_TRUNCATES 1