File 1412-crypto-Enable-SSL-features-for-static-NIFs.patch of Package erlang
From 3f79f2cc874343ee908c058c0eb63348c6899e7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20Wei=C3=9F?= <holger@zedat.fu-berlin.de> Date: Sun, 8 Mar 2026 12:03:41 +0100 Subject: [PATCH] crypto: Enable SSL features for static NIFs When --enable-static-nifs is used (together with --disable-dynamic-ssl-lib), the OpenSSL feature flags discovered by configure are not propagated to ALL_STATIC_CFLAGS, causing some crypto functions to incorrectly report 'notsup' at runtime. Add @SSL_FLAGS@ to ALL_STATIC_CFLAGS to fix this. --- lib/crypto/c_src/Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/crypto/c_src/Makefile.in b/lib/crypto/c_src/Makefile.in index d36e76dd7e..8dd77bf724 100644 --- a/lib/crypto/c_src/Makefile.in +++ b/lib/crypto/c_src/Makefile.in @@ -180,7 +180,7 @@ endif CONFIGURE_ARGS = -DDISABLE_EVP_DH=@DISABLE_EVP_DH@ -DDISABLE_EVP_HMAC=@DISABLE_EVP_HMAC@ ALL_CFLAGS = $(TYPE_FLAGS) $(EXTRA_FLAGS) $(CONFIGURE_ARGS) $(INCLUDES) -ALL_STATIC_CFLAGS = @DED_STATIC_CFLAGS@ $(TYPE_EXTRA_CFLAGS) $(CONFIGURE_ARGS) $(INCLUDES) +ALL_STATIC_CFLAGS = @DED_STATIC_CFLAGS@ $(TYPE_EXTRA_CFLAGS) @SSL_FLAGS@ $(CONFIGURE_ARGS) $(INCLUDES) # ---------------------------------------------------- # Targets -- 2.51.0