tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[PATCH] Fix bzip2 for large files



The "Replacement Makefile" dropped large file support without
explanation.  I guess people don't try to bzip2 multi-gigabyte
files very often, but I've been doing so recently.  Any reason
not to commit this?

--- Makefile.~1.1.~     2007-08-02 06:04:42.000000000 -0700
+++ Makefile    2009-03-18 14:08:58.000000000 -0700
@@ -3,6 +3,9 @@
 # Replacement Makefile for bzip2.
 #
 
+BIGFILES=      -D_FILE_OFFSET_BITS=64
+CFLAGS+=       ${BIGFILES}
+
 OBJS=  blocksort.o bzlib.o compress.o crctable.o \
        decompress.o huffman.o randtable.o
 LOBJS= ${OBJS:R:S/$/.lo/g}


Home | Main Index | Thread Index | Old Index