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.
This commit is contained in:
Peter Rosin 2011-05-25 10:54:06 +02:00 committed by Nick Mathewson
parent 06a714ffe4
commit 86090ee198

View 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