From: Peter Rosin Date: Wed, 25 May 2011 08:54:06 +0000 (+0200) Subject: Link with -lshell32 and -ladvapi32 on Win32. X-Git-Tag: release-2.0.12-stable~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=86090ee198ce45e857c6367d7ec71cca7a953159;p=libevent 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. --- 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