From b4fd26d1db133ace77abf65e232b8d1a6252db46 Mon Sep 17 00:00:00 2001 From: Hashim1999164 Date: Sun, 6 Sep 2026 17:02:08 +0500 Subject: [PATCH] Stop forcing pkgconfig into static mode during configure Unconditional --static made OpenSSL discovery pull Libs.private into link probes, which fails when those private archives are not installed. --- configure | 4 ---- configure.ac | 6 +++++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 5b0b139c0..405254804 100755 --- a/configure +++ b/configure @@ -5376,10 +5376,6 @@ $as_echo "no" >&6; } PKG_CONFIG="" fi fi -if test "x$PKG_CONFIG" != "x"; then : - PKG_CONFIG="$PKG_CONFIG --static" -fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto library" >&5 $as_echo_n "checking for crypto library... " >&6; } diff --git a/configure.ac b/configure.ac index aa7bf5835..9d7b462e4 100644 --- a/configure.ac +++ b/configure.ac @@ -202,7 +202,11 @@ fi AC_MSG_RESULT([$enable_debug_logging]) PKG_PROG_PKG_CONFIG -AS_IF([test "x$PKG_CONFIG" != "x"], [PKG_CONFIG="$PKG_CONFIG --static"]) +dnl Do not append --static to PKG_CONFIG. Forcing static pkg-config flags +dnl pulls Libs.private into configure link probes (AC_SEARCH_LIBS), which +dnl fails on hosts whose libcrypto.pc names private archives that are not +dnl installed (for example Ubuntu libjitterentropy). Dynamic flags are enough +dnl for discovery; Libs.private in libsrtp3.pc still gets the resulting LIBS. AC_MSG_CHECKING([for crypto library]) AC_ARG_WITH([crypto-library], AS_HELP_STRING([--with-crypto-library=TYPE], [Select crypto library, one of: openssl, wolfssl, nss, internal]),