[djvulibre/f13] Workaround a gcc bug - http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40134

Paul Whalen pwhalen at fedoraproject.org
Wed Jun 8 17:11:25 UTC 2011


commit 123193169600d6d0a155f1a78af1ac581b883717
Author: Paul Whalen <paul.whalen at senecac.on.ca>
Date:   Wed Jun 8 12:00:20 2011 -0400

    Workaround a gcc bug - http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40134

 djvulibre-workaround-gcc-bug-arm.patch |   12 ++++++++++++
 djvulibre.spec                         |    9 ++++++++-
 2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/djvulibre-workaround-gcc-bug-arm.patch b/djvulibre-workaround-gcc-bug-arm.patch
new file mode 100644
index 0000000..d8c198b
--- /dev/null
+++ b/djvulibre-workaround-gcc-bug-arm.patch
@@ -0,0 +1,12 @@
+diff -dur djvulibre-3.5.21.backup/libdjvu/Makefile.in djvulibre-3.5.21/libdjvu/Makefile.in
+--- djvulibre-3.5.21.backup/libdjvu/Makefile.in	2008-02-24 19:43:02.000000000 -0500
++++ djvulibre-3.5.21/libdjvu/Makefile.in	2009-07-03 07:06:10.117650754 -0400
+@@ -80,7 +80,7 @@
+ 	@echo "[ generating $@ ... ]"
+ 	${LIBTOOL} --mode=link ${CXX} ${CXXFLAGS} -no-undefined \
+ 	    -rpath ${libdir} -version-info ${LIBDJVU_VER} ${DLLFLAGS} \
+-	    ${OBJS} ${LIBS} -o ${LIBDJVU_LA}
++	    ${OBJS} ${LIBS} -lgcc_s -lgcc -o ${LIBDJVU_LA}
+ 
+ @RPO_YES@${LIBDJVU_LA} : libdjvu-rpo
+ @RPO_YES at libdjvu-rpo : ${OBJS}
diff --git a/djvulibre.spec b/djvulibre.spec
index 46da09d..ae9ea48 100644
--- a/djvulibre.spec
+++ b/djvulibre.spec
@@ -1,11 +1,12 @@
 Summary: DjVu viewers, encoders, and utilities
 Name: djvulibre
 Version: 3.5.22
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: GPLv2+
 Group: Applications/Publishing
 URL: http://djvu.sourceforge.net/
 Source: http://dl.sf.net/djvu/djvulibre-%{version}.tar.gz
+Patch0: djvulibre-workaround-gcc-bug-arm.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 Requires(post): xdg-utils, /sbin/ldconfig
 Requires(preun): xdg-utils
@@ -59,6 +60,9 @@ Development files for DjVuLibre.
 
 %prep
 %setup -q
+%ifarch %{arm}
+%patch0 -p1 -b .arm
+%endif
 
 # Convert ISO8859-1 ja man pages to UTF-8 (still as of 3.5.20-2)
 #for manpage in i18n/ja/*.1*; do
@@ -159,6 +163,9 @@ fi
 
 
 %changelog
+* Wed Jun 08 2011 Paul Whalen <paul.whalen at senecac.on.ca> - 3.5.22-2
+- Workaround a gcc bug - http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40134
+
 * Mon Nov 30 2009 Ralesh Pandit  <rakesh at fedoraproject.org> 3.5.22-1
 - Updated to 3.5.22 (#542221) (Spec patch by Michal Schmidt)
 


More information about the scm-commits mailing list