Commit 3c5e602a1eefd4e9f81bb08179b85420e6b4f708

Authored by Jay Berkenbilt
1 parent 076164e9

Windows build (msvc): target Windows 5.0.1 (XP)

Without this, qpdf executables work only on Vista or newer.

Fixes #35
Showing 2 changed files with 4 additions and 2 deletions
ChangeLog
1 1 2014-06-07 Jay Berkenbilt <ejb@ql.org>
2 2  
  3 + * MS Visual C++ build: explicitly target Windows 5.0.1 (XP)
  4 +
3 5 * New example program: pdf-split-pages: efficiently split PDF
4 6 files into individual pages.
5 7  
... ...
make/msvc.mk
... ... @@ -66,7 +66,7 @@ endef
66 66 # Usage: $(call makelib,objs,library,ldflags,libs,current,revision,age)
67 67 define makelib
68 68 cl /nologo /O2 /Zi /Gy /EHsc /MD /LD /Fe$(basename $(2))$(shell expr $(5) - $(7)).dll $(1) \
69   - /link /incremental:no \
  69 + /link /SUBSYSTEM:CONSOLE,5.01 /incremental:no \
70 70 $(foreach L,$(subst -L,,$(3)),/LIBPATH:$(L)) \
71 71 $(foreach L,$(subst -l,,$(4)),$(L).lib)
72 72 if [ -f $(basename $(2))$(shell expr $(5) - $(7)).dll.manifest ]; then \
... ... @@ -80,7 +80,7 @@ endef
80 80 # Usage: $(call makebin,objs,binary,ldflags,libs)
81 81 define makebin
82 82 cl /nologo /O2 /Zi /Gy /EHsc /MD $(1) \
83   - /link /incremental:no /OUT:$(2) \
  83 + /link /SUBSYSTEM:CONSOLE,5.01 /incremental:no /OUT:$(2) \
84 84 $(foreach L,$(subst -L,,$(3)),/LIBPATH:$(L)) \
85 85 $(foreach L,$(subst -l,,$(4)),$(L).lib)
86 86 if [ -f $(2).manifest ]; then \
... ...