Bug 717224 - Misc libraries fail to link on mingw due to missing -luserenv r=bbondy
authorJacek Caban <jacek@codeweavers.com>
Fri, 13 Jan 2012 13:50:55 +0100
changeset 85639 d13c738c54ce627f0091580a5825f037c9652a83
parent 85638 157c86d30692cd09b572cf03628e1439f9544963
child 85640 6f3285fc0d028e3cd8bf84f1e570d9692a21c708
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbbondy
bugs717224
milestone12.0a1
Bug 717224 - Misc libraries fail to link on mingw due to missing -luserenv r=bbondy
configure.in
--- a/configure.in
+++ b/configure.in
@@ -2531,17 +2531,17 @@ ia64*-hpux*)
         CXXFLAGS="$CXXFLAGS -mms-bitfields"
         DSO_LDOPTS='-shared'
         MKSHLIB='$(CXX) $(DSO_LDOPTS) -o $@'
         MKCSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
         RC='$(WINDRES)'
         # Use temp file for windres (bug 213281)
         RCFLAGS='-O coff --use-temp-file'
         # mingw doesn't require kernel32, user32, and advapi32 explicitly
-        LIBS="$LIBS -luuid -lgdi32 -lwinmm -lwsock32"
+        LIBS="$LIBS -luuid -lgdi32 -lwinmm -lwsock32 -luserenv"
         MOZ_FIX_LINK_PATHS=
         DYNAMIC_XPCOM_LIBS='-L$(LIBXUL_DIST)/lib -lxpcom -lxpcom_core -lmozalloc'
         XPCOM_FROZEN_LDOPTS='-L$(LIBXUL_DIST)/lib -lxpcom -lmozalloc'
         DLL_PREFIX=
         IMPORT_LIB_SUFFIX=dll.a
         GCC_VERSION=`$CC -v 2>&1 | awk '/^gcc version/ { print $3 }'`
     else
         TARGET_COMPILER_ABI=msvc