summaryrefslogtreecommitdiffstats
path: root/win/tcl.m4
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-10-11 12:11:53 (GMT)
committernijtmans <nijtmans>2010-10-11 12:11:53 (GMT)
commit9cc6e0ec345b6410eb72acc698971044188e5936 (patch)
tree0673bfb7a6a4e8f65b8fea6ebeafeff0d60af4fd /win/tcl.m4
parentd4669031a30c54543be0a0633b29ee1065484c76 (diff)
downloadtcl-9cc6e0ec345b6410eb72acc698971044188e5936.zip
tcl-9cc6e0ec345b6410eb72acc698971044188e5936.tar.gz
tcl-9cc6e0ec345b6410eb72acc698971044188e5936.tar.bz2
[FRQ 2965056]: Windows build with -DUNICODE
Add netapi32 to the windows link line, so we no longer have to use LoadLibrary to access those functions.
Diffstat (limited to 'win/tcl.m4')
-rw-r--r--win/tcl.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tcl.m4 b/win/tcl.m4
index 20845c0..ff07c34 100644
--- a/win/tcl.m4
+++ b/win/tcl.m4
@@ -463,7 +463,7 @@ file for information about building with Mingw.])
fi
SHLIB_LD=""
SHLIB_LD_LIBS='${LIBS}'
- LIBS="-lkernel32 -luser32 -ladvapi32 -lws2_32"
+ LIBS="-lnetapi32 -lkernel32 -luser32 -ladvapi32 -lws2_32"
# mingw needs to link ole32 and oleaut32 for [send], but MSVC doesn't
LIBS_GUI="-lgdi32 -lcomdlg32 -limm32 -lcomctl32 -lshell32 -luuid -lole32 -loleaut32"
STLIB_LD='${AR} cr'
@@ -615,7 +615,7 @@ file for information about building with Mingw.])
fi
fi
- LIBS="kernel32.lib user32.lib advapi32.lib ws2_32.lib"
+ LIBS="netapi32.lib kernel32.lib user32.lib advapi32.lib ws2_32.lib"
if test "$do64bit" != "no" ; then
# The space-based-path will work for the Makefile, but will
# not work if AC_TRY_COMPILE is called. TEA has the