Add -ladvapi32 for Windows CryptGenRandom support
This commit is contained in:
1 parent
e7f6aa7086
commit
2e4a14d0b8
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -21,7 +21,7 @@ utun_CORE_SOURCES = \
|
||||
# Platform-specific TUN sources
|
||||
if OS_WINDOWS
|
||||
utun_TUN_SOURCES = tun_windows.c
|
||||
utun_TUN_LIBS = -liphlpapi -lws2_32
|
||||
utun_TUN_LIBS = -liphlpapi -lws2_32 -ladvapi32
|
||||
else
|
||||
utun_TUN_SOURCES = tun_linux.c
|
||||
utun_TUN_LIBS =
|
||||
|
||||
+2
-2
@@ -78,9 +78,9 @@ ETCP_FULL_OBJS = \
|
||||
# Common libraries (libuasync.a from lib directory)
|
||||
COMMON_LIBS = $(top_builddir)/lib/libuasync.a -lpthread $(WIN_LIBS)
|
||||
|
||||
# Windows-specific libraries
|
||||
# Windows-specific libraries (advapi32 for CryptGenRandom, ws2_32 for sockets)
|
||||
if OS_WINDOWS
|
||||
WIN_LIBS = -lws2_32 -liphlpapi
|
||||
WIN_LIBS = -lws2_32 -liphlpapi -ladvapi32
|
||||
else
|
||||
WIN_LIBS =
|
||||
endif
|
||||
|
||||
Reference in new issue
Block a user