summaryrefslogtreecommitdiffstats
path: root/config-mingw32
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2012-06-26 22:52:30 +0200
committerJay Berkenbilt <ejb@ql.org>2012-06-27 05:05:59 +0200
commit0802ba275f589520988ea9af6c434af6b78add41 (patch)
treeb1da015693b0ff49aedb73edd44c7b73591bc33c /config-mingw32
parentf60bb8e07141b605265fb3a0241b4a5f73d4498c (diff)
downloadqpdf-0802ba275f589520988ea9af6c434af6b78add41.tar.zst
Visual C++ and mingw32 fixes for large files
Diffstat (limited to 'config-mingw32')
-rwxr-xr-xconfig-mingw3211
1 files changed, 11 insertions, 0 deletions
diff --git a/config-mingw32 b/config-mingw32
index 3fabdb0e..d128e3f6 100755
--- a/config-mingw32
+++ b/config-mingw32
@@ -1,2 +1,13 @@
#!/bin/sh
./configure --disable-test-compare-images --enable-external-libs --with-windows-wordsize=32 --with-buildrules=mingw
+# As of autoconf 2.69 and gcc 4.6, autoconf's configure fails to
+# recognize that defining _FILE_OFFSET_BITS works with mingw32.
+# Append to qpdf-config.h rather than passing CPPFLAGS on the
+# commandline. This way we don't defeat the fact that test_large_file
+# and other things that only use the public interface can be built
+# without any special flags.
+cat >> libqpdf/qpdf/qpdf-config.h <<EOF
+#ifndef _FILE_OFFSET_BITS
+# define _FILE_OFFSET_BITS 64
+#endif
+EOF