wok rev 11121
zlib: Add patch to fix compiling some programs. Like newer version of poppler.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Oct 26 19:55:18 2011 +0000 (2011-10-26) |
parents | 0d2856170146 |
children | d12296a4ada4 |
files | zlib/receipt zlib/stuff/zlib-1.2.5-lfs-decls.patch |
line diff
1.1 --- a/zlib/receipt Wed Oct 26 19:36:41 2011 +0000 1.2 +++ b/zlib/receipt Wed Oct 26 19:55:18 2011 +0000 1.3 @@ -24,6 +24,10 @@ 1.4 compile_rules() 1.5 { 1.6 cd $src 1.7 + # see http://bugs.archlinux.org/task/19280 1.8 + patch -p1 -i $stuff/zlib-1.2.5-lfs-decls.patch 1.9 + # work around gcc bug; see https://bugs.archlinux.org/task/20647 1.10 + export CFLAGS="${CFLAGS/-O2/-O3} -fno-tree-vectorize -DUNALIGNED_OK" 1.11 ./configure --prefix=/usr --shared && 1.12 make && make install 1.13 }
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/zlib/stuff/zlib-1.2.5-lfs-decls.patch Wed Oct 26 19:55:18 2011 +0000 2.3 @@ -0,0 +1,13 @@ 2.4 +Index: zlib-1.2.5/zlib.h 2.5 +=================================================================== 2.6 +--- zlib-1.2.5.orig/zlib.h 2.7 ++++ zlib-1.2.5/zlib.h 2.8 +@@ -1578,7 +1578,7 @@ ZEXTERN int ZEXPORT inflateBackInit_ OF( 2.9 + # define gzoffset gzoffset64 2.10 + # define adler32_combine adler32_combine64 2.11 + # define crc32_combine crc32_combine64 2.12 +-# ifdef _LARGEFILE64_SOURCE 2.13 ++# ifndef _LARGEFILE64_SOURCE 2.14 + ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *)); 2.15 + ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, z_off_t, int)); 2.16 + ZEXTERN z_off_t ZEXPORT gztell64 OF((gzFile));