2010-12-29 00:40:18 +01:00
|
|
|
--- zlib.h.orig
|
|
|
|
+++ zlib.h
|
|
|
|
@@ -1582,7 +1582,7 @@ ZEXTERN int ZEXPORT inflateBackInit_ OF(
|
2010-09-17 20:45:41 +02:00
|
|
|
# define gzoffset gzoffset64
|
|
|
|
# define adler32_combine adler32_combine64
|
|
|
|
# define crc32_combine crc32_combine64
|
|
|
|
-# ifdef _LARGEFILE64_SOURCE
|
2010-09-22 10:32:04 +02:00
|
|
|
+# ifndef _LARGEFILE64_SOURCE
|
|
|
|
ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
|
|
|
|
ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, z_off_t, int));
|
|
|
|
ZEXTERN z_off_t ZEXPORT gztell64 OF((gzFile));
|
2010-12-29 00:40:18 +01:00
|
|
|
--- Makefile.in.orig
|
|
|
|
+++ Makefile.in
|
|
|
|
@@ -133,11 +133,11 @@ minigzip64.o: minigzip.c zlib.h zconf.h
|
|
|
|
|
|
|
|
.c.lo:
|
|
|
|
-@mkdir objs 2>/dev/null || test -d objs
|
|
|
|
- $(CC) $(SFLAGS) -DPIC -c -o objs/$*.o $<
|
|
|
|
+ $(CC) $(SFLAGS) $(CFLAGS) -DPIC -c -o objs/$*.o $<
|
|
|
|
-@mv objs/$*.o $@
|
|
|
|
|
|
|
|
$(SHAREDLIBV): $(PIC_OBJS)
|
|
|
|
- $(LDSHARED) $(SFLAGS) -o $@ $(PIC_OBJS) $(LDSHAREDLIBC) $(LDFLAGS)
|
|
|
|
+ $(LDSHARED) $(SFLAGS) $(CFLAGS) -o $@ $(PIC_OBJS) $(LDSHAREDLIBC) $(LDFLAGS)
|
|
|
|
rm -f $(SHAREDLIB) $(SHAREDLIBM)
|
|
|
|
ln -s $@ $(SHAREDLIB)
|
|
|
|
ln -s $@ $(SHAREDLIBM)
|