aboutsummaryrefslogtreecommitdiffstats
path: root/make/libtool.mk
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-11-09 21:01:15 +0100
committerJay Berkenbilt <ejb@ql.org>2019-11-10 00:50:42 +0100
commit07da0039d3f496871d746305fbbf76ee9bde9862 (patch)
tree2bd79ba09951f77ba2d2866c339b2f73313a25c2 /make/libtool.mk
parenta58918bb8756c7c8efb12a6a283cc7f879565141 (diff)
downloadqpdf-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 'make/libtool.mk')
-rw-r--r--make/libtool.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/make/libtool.mk b/make/libtool.mk
index 41944b70..0aa7b0d7 100644
--- a/make/libtool.mk
+++ b/make/libtool.mk
@@ -98,10 +98,10 @@ define makelib
-rpath $(libdir) -version-info $(5):$(6):$(7) -no-undefined
endef
-# 1 2 3 4
-# Usage: $(call makebin,objs,binary,ldflags,libs)
+# 1 2 3 4 5
+# Usage: $(call makebin,objs,binary,ldflags,libs,xlinkflags)
define makebin
- $(LIBTOOL) --mode=link $(CXX) $(CXXFLAGS) $(1) -o $(2) $(3) $(4)
+ $(LIBTOOL) --mode=link $(CXX) $(CXXFLAGS) $(5) $(1) -o $(2) $(3) $(4)
endef
# Install target