]> granicus.if.org Git - libevent/commitdiff
Link with -lshell32 and -ladvapi32 on Win32.
authorPeter Rosin <peda@lysator.liu.se>
Wed, 25 May 2011 08:54:06 +0000 (10:54 +0200)
committerNick Mathewson <nickm@torproject.org>
Wed, 25 May 2011 23:44:06 +0000 (19:44 -0400)
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

index 08a7cafeaf9a3e698d2e6e2f1b1132735922c81e..2c902426ad12508ec6dfd7d084638888efdb6d18 100644 (file)
@@ -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