Fix tests Makefile.am: WIN_LIBS must be defined before COMMON_LIBS
This commit is contained in:
1 parent
2e4a14d0b8
commit
2e0f01e36b
1 file changed
+3
-3
+3
-3
@@ -75,9 +75,6 @@ ETCP_FULL_OBJS = \
|
||||
$(top_builddir)/src/utun-utun_instance.o \
|
||||
$(ETCP_CORE_OBJS)
|
||||
|
||||
# Common libraries (libuasync.a from lib directory)
|
||||
COMMON_LIBS = $(top_builddir)/lib/libuasync.a -lpthread $(WIN_LIBS)
|
||||
|
||||
# Windows-specific libraries (advapi32 for CryptGenRandom, ws2_32 for sockets)
|
||||
if OS_WINDOWS
|
||||
WIN_LIBS = -lws2_32 -liphlpapi -ladvapi32
|
||||
@@ -85,6 +82,9 @@ else
|
||||
WIN_LIBS =
|
||||
endif
|
||||
|
||||
# Common libraries (libuasync.a from lib directory)
|
||||
COMMON_LIBS = $(top_builddir)/lib/libuasync.a -lpthread $(WIN_LIBS)
|
||||
|
||||
# Crypto libraries (conditional)
|
||||
if USE_OPENSSL
|
||||
CRYPTO_LIBS = -lcrypto
|
||||
|
||||
Reference in new issue
Block a user