From 2343aee19b8e8290de30bc51ae857c366cf8c324 Mon Sep 17 00:00:00 2001 From: Bob Owen Date: Thu, 30 Apr 2015 09:48:03 +0100 Subject: [PATCH] Bug 1150515: Set the subsystem to WINDOWS,5.02 for wow_helper so that it runs on WinXP 64-bit. r=glandium --- security/sandbox/win/wow_helper/Makefile.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/security/sandbox/win/wow_helper/Makefile.in b/security/sandbox/win/wow_helper/Makefile.in index 200fd544c227..041edc63b54f 100644 --- a/security/sandbox/win/wow_helper/Makefile.in +++ b/security/sandbox/win/wow_helper/Makefile.in @@ -40,3 +40,8 @@ OS_COMPILE_CXXFLAGS := # LNK1246: '/SAFESEH' not compatible with 'x64' target machine LDFLAGS := $(filter-out -SAFESEH,$(LDFLAGS)) + +# When targetting x64, we need to specify a subsystem of at least 5.02, because +# the 5.01 value we inherit from the x86 parts is silently ignored, making the +# linker default to 6.00 (Vista) as of VS2013. +WIN32_GUI_EXE_LDFLAGS=-SUBSYSTEM:WINDOWS,5.02