From 9929e7d3d213efc7aaac8eb71f57449508d48e2f Mon Sep 17 00:00:00 2001 From: Masatoshi Kimura Date: Fri, 30 Dec 2016 01:29:52 +0900 Subject: [PATCH] Bug 1325299 - Don't explicitly set PSAPI_VERSION. r=glandium WINVER=0x0601 implies PSAPI_VERSION=2. We should not mix PSAPI_VERSION. MozReview-Commit-ID: Ckxel4JNW2x --HG-- extra : rebase_source : 932c67a3cae063fe4b0c5fec9048e67ce6286ad3 --- ipc/chromium/chromium-config.mozbuild | 1 - js/src/build.rs | 1 - js/src/old-configure.in | 4 ++-- media/webrtc/trunk/build/common.gypi | 2 -- toolkit/library/moz.build | 2 -- 5 files changed, 2 insertions(+), 8 deletions(-) diff --git a/ipc/chromium/chromium-config.mozbuild b/ipc/chromium/chromium-config.mozbuild index 9df182cb8752..5b448fe3940f 100644 --- a/ipc/chromium/chromium-config.mozbuild +++ b/ipc/chromium/chromium-config.mozbuild @@ -12,7 +12,6 @@ LOCAL_INCLUDES += [ if CONFIG['OS_ARCH'] == 'WINNT': OS_LIBS += [ - 'psapi', 'shell32', 'dbghelp', ] diff --git a/js/src/build.rs b/js/src/build.rs index d4e1082321f2..d6ab60f1a92c 100644 --- a/js/src/build.rs +++ b/js/src/build.rs @@ -40,7 +40,6 @@ fn main() { if target.contains("windows") { println!("cargo:rustc-link-lib=winmm"); - println!("cargo:rustc-link-lib=psapi"); if target.contains("gnu") { println!("cargo:rustc-link-lib=stdc++"); } diff --git a/js/src/old-configure.in b/js/src/old-configure.in index c7d3970d44f3..29d451c4a4c0 100644 --- a/js/src/old-configure.in +++ b/js/src/old-configure.in @@ -659,7 +659,7 @@ case "$target" in # Use temp file for windres (bug 213281) RCFLAGS='-O coff --use-temp-file' # mingw doesn't require kernel32, user32, and advapi32 explicitly - LIBS="$LIBS -lgdi32 -lwinmm -lwsock32 -lpsapi" + LIBS="$LIBS -lgdi32 -lwinmm -lwsock32" MOZ_FIX_LINK_PATHS= DLL_PREFIX= IMPORT_LIB_SUFFIX=a @@ -796,7 +796,7 @@ case "$target" in # make 'foo == bar;' error out CFLAGS="$CFLAGS -we4553" CXXFLAGS="$CXXFLAGS -we4553" - LIBS="$LIBS kernel32.lib user32.lib gdi32.lib winmm.lib wsock32.lib advapi32.lib psapi.lib" + LIBS="$LIBS kernel32.lib user32.lib gdi32.lib winmm.lib wsock32.lib advapi32.lib" MOZ_DEBUG_LDFLAGS='-DEBUG -DEBUGTYPE:CV' WARNINGS_AS_ERRORS='-WX' MOZ_OPTIMIZE_FLAGS="-O2" diff --git a/media/webrtc/trunk/build/common.gypi b/media/webrtc/trunk/build/common.gypi index 2ab21db2ba83..9e94ce9615da 100644 --- a/media/webrtc/trunk/build/common.gypi +++ b/media/webrtc/trunk/build/common.gypi @@ -3327,7 +3327,6 @@ 'WIN32', '_WINDOWS', 'NOMINMAX', - 'PSAPI_VERSION=1', '_CRT_RAND_S', 'CERT_CHAIN_PARA_HAS_EXTRA_FIELDS', 'WIN32_LEAN_AND_MEAN', @@ -3455,7 +3454,6 @@ 'msimg32.lib', 'ws2_32.lib', 'usp10.lib', - 'psapi.lib', 'dbghelp.lib', 'winmm.lib', 'shlwapi.lib', diff --git a/toolkit/library/moz.build b/toolkit/library/moz.build index 688feb44cedf..253c773752e1 100644 --- a/toolkit/library/moz.build +++ b/toolkit/library/moz.build @@ -27,7 +27,6 @@ def Libxul(name): 'dbghelp.dll', 'netapi32.dll', 'PowrProf.dll', - 'psapi.dll', 'rasapi32.dll', 'rasdlg.dll', 'secur32.dll', @@ -340,7 +339,6 @@ if CONFIG['OS_ARCH'] == 'WINNT': 'msimg32', 'netapi32', 'shlwapi', - 'psapi', 'ws2_32', 'dbghelp', 'rasapi32',