From a309054d1ba9d85b6457fbcf7adb03acb61d51ba Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Thu, 10 Mar 2005 17:50:05 +0000 Subject: [PATCH] - Build igcrej.c with -O0 to work around bug #150771. --- ghostscript-noopt.patch | 11 +++++++++++ ghostscript.spec | 12 +++++++----- 2 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 ghostscript-noopt.patch diff --git a/ghostscript-noopt.patch b/ghostscript-noopt.patch new file mode 100644 index 0000000..3a93580 --- /dev/null +++ b/ghostscript-noopt.patch @@ -0,0 +1,11 @@ +--- ghostscript-7.07/src/int.mak.noopt 2005-03-10 17:22:53.000000000 +0000 ++++ ghostscript-7.07/src/int.mak 2005-03-10 17:24:10.000000000 +0000 +@@ -105,7 +105,7 @@ + $(PSOBJ)igcref.$(OBJ) : $(PSSRC)igcref.c $(GH) $(memory__h)\ + $(gsexit_h) $(gsstruct_h)\ + $(iastate_h) $(idebug_h) $(igc_h) $(iname_h) $(ipacked_h) $(store_h) +- $(PSCC) $(PSO_)igcref.$(OBJ) $(C_) $(PSSRC)igcref.c ++ $(PSCC) -O0 $(PSO_)igcref.$(OBJ) $(C_) $(PSSRC)igcref.c + + $(PSOBJ)igcstr.$(OBJ) : $(PSSRC)igcstr.c $(GH) $(memory__h)\ + $(gsmdebug_h) $(gsstruct_h) $(iastate_h) $(igcstr_h) diff --git a/ghostscript.spec b/ghostscript.spec index 98f188a..a6d57d9 100644 --- a/ghostscript.spec +++ b/ghostscript.spec @@ -8,7 +8,7 @@ BuildRequires: patchutils >= 0.2.13 # Set this to '1' for fontconfig support. %define use_fontconfig 0 -Release: 39.2 +Release: 40 License: GPL URL: http://www.ghostscript.com/doc/gnu/ @@ -82,6 +82,7 @@ Patch50: ghostscript-pagesize.patch Patch51: ghostscript-7.07-fontconfig-rh.patch Patch52: ghostscript-7.07-mixedman.patch Patch53: ghostscript-gcc4.patch +Patch54: ghostscript-noopt.patch Requires: zlib, libpng, glib2 Requires: urw-fonts >= 1.1, ghostscript-fonts @@ -503,6 +504,7 @@ from8859_1 man/gs-pcl3.1 from8859_1 man/pcl3opts.1 %patch52 -p1 %patch53 -p1 -b .gcc4 +%patch54 -p1 -b .noopt for i in man/de/*.1; do from8859_1 "$i"; done %build @@ -513,8 +515,8 @@ autoconf # The shipped configure script is broken and needs remaking. make cd .. -make so RPM_OPT_FLAGS="$RPM_OPT_FLAGS -O0" prefix=%{_prefix} -make RPM_OPT_FLAGS="$RPM_OPT_FLAGS -O0" prefix=%{_prefix} +make so RPM_OPT_FLAGS="$RPM_OPT_FLAGS" prefix=%{_prefix} +make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" prefix=%{_prefix} %install rm -rf $RPM_BUILD_ROOT @@ -602,8 +604,8 @@ rm -rf $RPM_BUILD_ROOT %postun -p /sbin/ldconfig %changelog -* Thu Mar 10 2005 Tim Waugh 7.07-39.2 -- Try building gs with -O0. +* Thu Mar 10 2005 Tim Waugh 7.07-40 +- Build igcrej.c with -O0 to work around bug #150771. * Tue Mar 1 2005 Tim Waugh 7.07-39 - Rebuilt for new GCC.