diff options
author | Jay Berkenbilt <ejb@ql.org> | 2014-06-07 23:01:14 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2014-06-07 23:16:50 +0200 |
commit | 3c5e602a1eefd4e9f81bb08179b85420e6b4f708 (patch) | |
tree | ce60b5ca689c1660307140d8c6ba4e17ac9ba190 /make/msvc.mk | |
parent | 076164e988a77c2807478a9a329f403ec940ee2c (diff) | |
download | qpdf-3c5e602a1eefd4e9f81bb08179b85420e6b4f708.tar.zst |
Windows build (msvc): target Windows 5.0.1 (XP)
Without this, qpdf executables work only on Vista or newer.
Fixes #35
Diffstat (limited to 'make/msvc.mk')
-rw-r--r-- | make/msvc.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/make/msvc.mk b/make/msvc.mk index bef53957..a8681173 100644 --- a/make/msvc.mk +++ b/make/msvc.mk @@ -66,7 +66,7 @@ endef # Usage: $(call makelib,objs,library,ldflags,libs,current,revision,age) define makelib cl /nologo /O2 /Zi /Gy /EHsc /MD /LD /Fe$(basename $(2))$(shell expr $(5) - $(7)).dll $(1) \ - /link /incremental:no \ + /link /SUBSYSTEM:CONSOLE,5.01 /incremental:no \ $(foreach L,$(subst -L,,$(3)),/LIBPATH:$(L)) \ $(foreach L,$(subst -l,,$(4)),$(L).lib) if [ -f $(basename $(2))$(shell expr $(5) - $(7)).dll.manifest ]; then \ @@ -80,7 +80,7 @@ endef # Usage: $(call makebin,objs,binary,ldflags,libs) define makebin cl /nologo /O2 /Zi /Gy /EHsc /MD $(1) \ - /link /incremental:no /OUT:$(2) \ + /link /SUBSYSTEM:CONSOLE,5.01 /incremental:no /OUT:$(2) \ $(foreach L,$(subst -L,,$(3)),/LIBPATH:$(L)) \ $(foreach L,$(subst -l,,$(4)),$(L).lib) if [ -f $(2).manifest ]; then \ |