- Build igcrej.c with -O0 to work around bug #150771.

This commit is contained in:
Tim Waugh 2005-03-10 17:50:05 +00:00
parent b0b63e57dc
commit a309054d1b
2 changed files with 18 additions and 5 deletions

11
ghostscript-noopt.patch Normal file
View File

@ -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)

View File

@ -8,7 +8,7 @@ BuildRequires: patchutils >= 0.2.13
# Set this to '1' for fontconfig support. # Set this to '1' for fontconfig support.
%define use_fontconfig 0 %define use_fontconfig 0
Release: 39.2 Release: 40
License: GPL License: GPL
URL: http://www.ghostscript.com/doc/gnu/ URL: http://www.ghostscript.com/doc/gnu/
@ -82,6 +82,7 @@ Patch50: ghostscript-pagesize.patch
Patch51: ghostscript-7.07-fontconfig-rh.patch Patch51: ghostscript-7.07-fontconfig-rh.patch
Patch52: ghostscript-7.07-mixedman.patch Patch52: ghostscript-7.07-mixedman.patch
Patch53: ghostscript-gcc4.patch Patch53: ghostscript-gcc4.patch
Patch54: ghostscript-noopt.patch
Requires: zlib, libpng, glib2 Requires: zlib, libpng, glib2
Requires: urw-fonts >= 1.1, ghostscript-fonts Requires: urw-fonts >= 1.1, ghostscript-fonts
@ -503,6 +504,7 @@ from8859_1 man/gs-pcl3.1
from8859_1 man/pcl3opts.1 from8859_1 man/pcl3opts.1
%patch52 -p1 %patch52 -p1
%patch53 -p1 -b .gcc4 %patch53 -p1 -b .gcc4
%patch54 -p1 -b .noopt
for i in man/de/*.1; do from8859_1 "$i"; done for i in man/de/*.1; do from8859_1 "$i"; done
%build %build
@ -513,8 +515,8 @@ autoconf # The shipped configure script is broken and needs remaking.
make make
cd .. cd ..
make so 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 -O0" prefix=%{_prefix} make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" prefix=%{_prefix}
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -602,8 +604,8 @@ rm -rf $RPM_BUILD_ROOT
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%changelog %changelog
* Thu Mar 10 2005 Tim Waugh <twaugh@redhat.com> 7.07-39.2 * Thu Mar 10 2005 Tim Waugh <twaugh@redhat.com> 7.07-40
- Try building gs with -O0. - Build igcrej.c with -O0 to work around bug #150771.
* Tue Mar 1 2005 Tim Waugh <twaugh@redhat.com> 7.07-39 * Tue Mar 1 2005 Tim Waugh <twaugh@redhat.com> 7.07-39
- Rebuilt for new GCC. - Rebuilt for new GCC.