Bug 1568634: Remove kernel32.lib from LIBS in old-configure.in; r=glandium

Since kernel32.lib is a defaultlib we do not need to explicitly include it
in the OS_LIBS list; the linker will implicitly add it to the end of the list.
In fact, its presence interferes with other explicitly added .lib files that
should take precedence.

Differential Revision: https://phabricator.services.mozilla.com/D41806

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Aaron Klotz 2019-08-14 03:30:20 +00:00
parent 9176c8beb4
commit d55b1b38d0

View File

@ -800,7 +800,7 @@ case "$target" in
fi
# Silence VS2017 15.5+ TR1 deprecation warnings hit by older gtest versions
CXXFLAGS="$CXXFLAGS -D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING"
LIBS="$LIBS kernel32.lib user32.lib gdi32.lib winmm.lib wsock32.lib advapi32.lib secur32.lib"
LIBS="$LIBS user32.lib gdi32.lib winmm.lib wsock32.lib advapi32.lib secur32.lib"
MOZ_DEBUG_LDFLAGS='-DEBUG'
WARNINGS_AS_ERRORS='-WX'
# Use a higher optimization level for clang-cl, so we can come closer