From 86090ee198ce45e857c6367d7ec71cca7a953159 Mon Sep 17 00:00:00 2001 From: Peter Rosin Date: Wed, 25 May 2011 10:54:06 +0200 Subject: [PATCH] Link with -lshell32 and -ladvapi32 on Win32. SHGetSpecialFolderPath is in Shell32.dll and the RegOpenKey (et al) and CryptGenRandom (et al) functions are in -ladvapi32.dll. MinGW is "nice" and brings those in automatically, but specify them explicitly for other tool chains. --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 08a7cafe..2c902426 100644 --- a/Makefile.am +++ b/Makefile.am @@ -110,7 +110,7 @@ SUBDIRS = . include sample test if BUILD_WIN32 -SYS_LIBS = -lws2_32 +SYS_LIBS = -lws2_32 -lshell32 -ladvapi32 SYS_SRC = win32select.c evthread_win32.c buffer_iocp.c event_iocp.c \ bufferevent_async.c SYS_INCLUDES = -IWIN32-Code -- 2.40.0