ghostscript-9.20-fix-openjpeg-system-build.patch 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. From 99cf218dbd5f6fbdbda2ce6872eb9ab7f475c353 Mon Sep 17 00:00:00 2001
  2. From: Chris Liddell <chris.liddell@artifex.com>
  3. Date: Tue, 27 Sep 2016 11:22:18 +0100
  4. Subject: [PATCH 1/2] Add pre-processor define for shared OpenJPEG
  5. ---
  6. Makefile.in | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. diff --git a/Makefile.in b/Makefile.in
  9. index 25875ad..2ca2a80 100644
  10. --- a/Makefile.in
  11. +++ b/Makefile.in
  12. @@ -290,7 +290,7 @@ JBIG2_CFLAGS=@JBIG2_AUTOCONF_CFLAGS@
  13. JPX_LIB=@JPX_DECODER@
  14. SHARE_JPX=@SHARE_JPX@
  15. JPXSRCDIR=@JPXDIR@
  16. -JPX_CFLAGS=@JPX_AUTOCONF_CFLAGS@ @JPX_SSE_CFLAGS@
  17. +JPX_CFLAGS=-DSHARE_JPX=$(SHARE_JPX) @JPX_AUTOCONF_CFLAGS@ @JPX_SSE_CFLAGS@
  18. # uncomment the following three lines and one of the last two to
  19. # compile in the Luratech lwf_jp2 codec
  20. --
  21. 2.7.4
  22. From 4f19ab99cac2d8a7d21aea34d8aea0727fad52d3 Mon Sep 17 00:00:00 2001
  23. From: Didier Raboud <odyx@debian.org>
  24. Date: Thu, 6 Oct 2016 17:08:41 +0200
  25. Subject: [PATCH 2/2] Don't pass -DOPJ_STATIC when compiling the OpenJPEG code.
  26. It makes the symbols hidden when including
  27. /usr/include/openjpeg-2.1/openjpeg.h.
  28. Fixes a FTBFS against libopenjp2-7 (>= 2.1.1).
  29. Debian bug: https://bugs.debian.org/832873
  30. ---
  31. base/lib.mak | 2 +-
  32. 1 file changed, 1 insertion(+), 1 deletion(-)
  33. diff --git a/base/lib.mak b/base/lib.mak
  34. index 173e2c6..cffdc9d 100644
  35. --- a/base/lib.mak
  36. +++ b/base/lib.mak
  37. @@ -1849,7 +1849,7 @@ $(GLOBJ)sjpx_openjpeg.$(OBJ) : $(GLSRC)sjpx_openjpeg.c $(AK) \
  38. $(memory__h) $(gserror_h) $(gserrors_h) \
  39. $(gdebug_h) $(strimpl_h) $(sjpx_openjpeg_h) $(LIB_MAK) $(MAKEDIRS)
  40. $(GLJPXOPJCC) $(GLO_)sjpx_openjpeg.$(OBJ) \
  41. - $(C_) -DOPJ_STATIC $(GLSRC)sjpx_openjpeg.c
  42. + $(C_) $(GLSRC)sjpx_openjpeg.c
  43. # ---------------- Pixel-difference filters ---------------- #
  44. # The Predictor facility of the LZW and Flate filters uses these.
  45. --
  46. 2.7.4