summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Major <dmajor@mozilla.com>2014-09-04 18:32:29 -0700
committerDavid Major <dmajor@mozilla.com>2014-09-04 18:32:29 -0700
commit67c675d66e3b3175ef53ef35936ee660086ea456 (patch)
tree030bdd2cc4c37d2a261845c861b94b54eabd4932
parent08e7e1dfb5b369ec42f038e951006ba79f9c6d7e (diff)
downloadnss-hg-67c675d66e3b3175ef53ef35936ee660086ea456.tar.gz
Bug 1001332: Set subsystem version 5.01/5.02 for NSS utils. r=wtc.
-rw-r--r--coreconf/WIN32.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/coreconf/WIN32.mk b/coreconf/WIN32.mk
index bf46a83eb..da8c9bf8b 100644
--- a/coreconf/WIN32.mk
+++ b/coreconf/WIN32.mk
@@ -210,12 +210,18 @@ endif
ifeq (,$(filter-out x386 x86_64,$(CPU_ARCH)))
ifdef USE_64
DEFINES += -D_AMD64_
+ # Use subsystem 5.02 to allow running on Windows XP.
+ ifeq ($(_MSC_VER_GE_11),1)
+ LDFLAGS += -SUBSYSTEM:CONSOLE,5.02
+ endif
else
DEFINES += -D_X86_
# VS2012 defaults to -arch:SSE2. Use -arch:IA32 to avoid requiring
# SSE2.
+ # Use subsystem 5.01 to allow running on Windows XP.
ifeq ($(_MSC_VER_GE_11),1)
OS_CFLAGS += -arch:IA32
+ LDFLAGS += -SUBSYSTEM:CONSOLE,5.01
endif
endif
endif