Accepting request 68919 from devel:libraries:c_c++

- Fix build with gcc 4.6 (forwarded request 68918 from elvigia)

OBS-URL: https://build.opensuse.org/request/show/68919
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/zziplib?expand=0&rev=11
This commit is contained in:
Sascha Peilicke 2011-05-02 10:23:54 +00:00 committed by Git OBS Bridge
commit 7dbf1e2403
3 changed files with 29 additions and 1 deletions

View File

@ -0,0 +1,22 @@
--- configure.ac.orig
+++ configure.ac
@@ -288,7 +288,7 @@ case "$host_os" in
if test ".$can_build_shared" = .no
then ZZIPLIB_LDFLAGS=""
- else ZZIPLIB_LDFLAGS="--export-dynamic"
+ else ZZIPLIB_LDFLAGS="-Wl,--export-dynamic"
fi
RESOLVES=' # '
;;
--- zzip/Makefile.am.orig
+++ zzip/Makefile.am
@@ -2,7 +2,7 @@ AUTOMAKE_OPTIONS = 1.5 foreign
AUTOTOOL_VERSION=autoconf-2.52 automake-1.5 libtool-1.4.2
DEFAULT_INCLUDES = # nothing - no default of -I. -I$(srcdir)
DEFS = @DEFS@ -I$(top_builddir) -I$(top_srcdir) # also for automake 1.4
-
+AM_CFLAGS = -fno-strict-aliasing
lib_LTLIBRARIES = libzzip.la libzzipmmapped.la libzzipfseeko.la
zzipdir = ${includedir}/zzip
zzip_HEADERS = $(libzzip_la_headers) \

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Apr 30 15:22:39 UTC 2011 - crrodriguez@opensuse.org
- Fix build with gcc 4.6
-------------------------------------------------------------------
Mon Feb 15 16:43:03 CET 2010 - dimstar@opensuse.org

View File

@ -28,6 +28,7 @@ AutoReqProv: on
Url: http://zziplib.sourceforge.net
Source0: http://prdownloads.sourceforge.net/zziplib/%{name}-%{version}.tar.bz2
Patch: zziplib-0.13.49.patch
Patch1: zziplib-0.13.58-wronglinking.patch
BuildRequires: pkgconfig python zlib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -48,7 +49,7 @@ ZZipLib.
%prep
%setup -q
%patch
%patch1
%build
autoreconf -fiv
%configure --enable-largefile --disable-static --with-pic