zziplib/zziplib-0.13.49.patch

33 lines
1.5 KiB
Diff

Index: m4/ax_cflags_no_writable_strings.m4
===================================================================
--- m4/ax_cflags_no_writable_strings.m4.orig
+++ m4/ax_cflags_no_writable_strings.m4
@@ -40,6 +40,7 @@ VAR,[VAR="no, unknown"
for ac_arg dnl
in "-pedantic % -fno-writable-strings -Wwrite-strings" dnl GCC
"-pedantic % -fconst-strings -Wwrite-strings" dnl newer GCC
+ "-Wall % -Wwrite-strings" dnl GCC4.1+
"-v -Xc % -xstrconst" dnl Solaris C - strings go into readonly segment
"+w1 -Aa % +ESlit" dnl HP-UX C - strings go into readonly segment
"-w0 -std1 % -readonly_strings" dnl Digital Unix - again readonly segment
Index: zzip/Makefile.am
===================================================================
--- zzip/Makefile.am.orig
+++ zzip/Makefile.am
@@ -45,13 +45,13 @@ libzzip_la_LDFLAGS= @ZZIPLIB_LDFLAGS@ $(
libzzip_la_LIBADD= -lz @RESOLVES@
libzzipmmapped_la_SOURCES = mmapped.c memdisk.c fetch.c
-libzzipmmapped_la_headers = mmapped.h memdisk.h fetch.h
+libzzipmmapped_la_headers = mmapped.h memdisk.h
libzzipmmapped_la_LDFLAGS= @ZZIPLIB_LDFLAGS@ $(RELEASE_INFO) $(VERSION_INFO) \
$(THREAD_SAFE)
libzzipmmapped_la_LIBADD= -lz @RESOLVES@
libzzipfseeko_la_SOURCES = fseeko.c fetch.c
-libzzipfseeko_la_headers = fseeko.h fetch.h
+libzzipfseeko_la_headers = fseeko.h
libzzipfseeko_la_LDFLAGS= @ZZIPLIB_LDFLAGS@ $(RELEASE_INFO) $(VERSION_INFO) \
$(THREAD_SAFE)
libzzipfseeko_la_LIBADD= -lz @RESOLVES@