aboutsummaryrefslogtreecommitdiffstats
path: root/config-mingw32
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2016-01-24 21:51:21 +0100
committerJay Berkenbilt <ejb@ql.org>2017-07-26 12:24:07 +0200
commite0ee307a199fcf47523b395ce99052ec51e69476 (patch)
tree92441c40398bb68c7633dacd6cd55a07a771f56e /config-mingw32
parentd4d7612b5b14ad3b1fb2e21e04017369931ae203 (diff)
downloadqpdf-e0ee307a199fcf47523b395ce99052ec51e69476.tar.zst
Updates for newer Windows toolchain
Diffstat (limited to 'config-mingw32')
-rwxr-xr-xconfig-mingw3222
1 files changed, 10 insertions, 12 deletions
diff --git a/config-mingw32 b/config-mingw32
index 365344b2..3d23010b 100755
--- a/config-mingw32
+++ b/config-mingw32
@@ -1,13 +1,11 @@
#!/bin/sh
-./configure --disable-test-compare-images --enable-external-libs --enable-werror --with-windows-wordsize=32 --with-buildrules=mingw ${1+"$@"}
-# 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
+./configure --disable-test-compare-images --enable-external-libs --enable-werror --with-windows-wordsize=32 --with-buildrules=mingw \
+ CC=i686-w64-mingw32-gcc \
+ CXX=i686-w64-mingw32-g++ \
+ LD=i686-w64-mingw32-ld \
+ AR=i686-w64-mingw32-ar \
+ RANLIB=i686-w64-mingw32-ranlib \
+ DLLTOOL=$(dirname $(type -p i686-w64-mingw32-gcc))/dlltool \
+ STRIP=i686-w64-mingw32-strip \
+ OBJDUMP=$(dirname $(type -p i686-w64-mingw32-gcc))/objdump \
+ ${1+"$@"}