diff options
author | Jay Berkenbilt <ejb@ql.org> | 2019-11-09 21:01:15 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2019-11-10 00:50:42 +0100 |
commit | 07da0039d3f496871d746305fbbf76ee9bde9862 (patch) | |
tree | 2bd79ba09951f77ba2d2866c339b2f73313a25c2 /configure | |
parent | a58918bb8756c7c8efb12a6a283cc7f879565141 (diff) | |
download | qpdf-07da0039d3f496871d746305fbbf76ee9bde9862.tar.zst |
Link with setargv or wsetargv with MSVC (fixes #224)
For wildcard expansion to work properly with the msvc binary, it is
necessary to link with setargv.obj or wsetargv.obj, depending on
whether wmain is in use.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -647,6 +647,8 @@ USE_CRYPTO_GNUTLS pc_gnutls_LIBS pc_gnutls_CFLAGS USE_CRYPTO_NATIVE +WINDOWS_MAIN_XLINK_FLAGS +WINDOWS_WMAIN_XLINK_FLAGS CXXWFLAGS WFLAGS BUILDRULES @@ -17595,6 +17597,13 @@ fi +if test "$BUILDRULES" = "msvc"; then + WINDOWS_WMAIN_XLINK_FLAGS="-link wsetargv.obj" + WINDOWS_MAIN_XLINK_FLAGS="-link setargv.obj" +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether to use implicit crypto" >&5 $as_echo_n "checking for whether to use implicit crypto... " >&6; } # Check whether --enable-implicit-crypto was given. |