- Fix build with gcc 4.6 OBS-URL: https://build.opensuse.org/request/show/68918 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/zziplib?expand=0&rev=7
23 lines
736 B
Diff
23 lines
736 B
Diff
--- 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) \
|