From 560e121d4c5d791874785a6ea0545140eb628e9e Mon Sep 17 00:00:00 2001 From: Evgeny Date: Sun, 15 Feb 2026 04:41:25 +0300 Subject: [PATCH] Fix tests Makefile.am: WIN_LIBS must be defined before COMMON_LIBS --- tests/Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 75ae33f0..12a35942 100644 --- a/tests/Makefile.am +++ b/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