Skip to content

Commit 0151bdb

Browse files
committed
FEATURE-ci-v3-runtime-green: link the Windows network libraries into the raw v3core archive consumers
1 parent b3ae3e9 commit 0151bdb

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎configure.ac‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,14 @@ esac
193193
AS_IF([test "x$is_windows" = xyes], [V3_TLS_DL_LIBS=""], [V3_TLS_DL_LIBS="-ldl"])
194194
AC_SUBST([V3_TLS_DL_LIBS])
195195

196+
# Programs that link the raw static v3core archive bypass libtool's
197+
# dependency propagation, and the global LDFLAGS carrying NETWORK_LIBS
198+
# precede the objects on automake link lines, so the Windows network
199+
# libraries must ride the program LDADD explicitly, after the archive.
200+
# POSIX libc resolves socket symbols implicitly.
201+
AS_IF([test "x$is_windows" = xyes], [V3_NETWORK_LIBS="$NETWORK_LIBS"], [V3_NETWORK_LIBS=""])
202+
AC_SUBST([V3_NETWORK_LIBS])
203+
196204
# Checks for header files.
197205
AC_CHECK_HEADER([stdint.h],[],[AC_MSG_ERROR("stdint.h not found")])
198206
AC_CHECK_HEADER([inttypes.h],[],[AC_MSG_ERROR("inttypes.h not found")])

‎test/Makefile.am‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1321,7 +1321,7 @@ if NATIVE_V3_TLS
13211321
check_PROGRAMS += quic_interop_tls
13221322
quic_interop_tls_SOURCES = unit/quic_interop_tls_test.cpp support/http3_network_owner.cpp support/http3_network_lifecycle.cpp support/quic_interop_files.cpp
13231323
quic_interop_tls_CPPFLAGS = $(http3_network_owner_CPPFLAGS)
1324-
quic_interop_tls_LDADD = libquic_interop_provider.a $(top_builddir)/src/.libs/libhttpserver_v3core.a $(V3_TLS_LIBS) -lpthread $(V3_TLS_DL_LIBS)
1324+
quic_interop_tls_LDADD = libquic_interop_provider.a $(top_builddir)/src/.libs/libhttpserver_v3core.a $(V3_TLS_LIBS) -lpthread $(V3_TLS_DL_LIBS) $(V3_NETWORK_LIBS)
13251325
quic_interop_tls_LDFLAGS = $(tls_io_LDFLAGS)
13261326
endif
13271327
check_PROGRAMS += quic_interop_files

0 commit comments

Comments
 (0)