Browse Source

Fix tests Makefile.am: WIN_LIBS must be defined before COMMON_LIBS

nodeinfo-routing-update
Evgeny 8 months ago
parent
commit
560e121d4c
  1. 6
      tests/Makefile.am

6
tests/Makefile.am

@ -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

Loading…
Cancel
Save