From 501b073680759b98bc42c21bbf91d8f63b5c7404 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Wed, 30 Oct 2024 14:08:22 +0100 Subject: [PATCH] correctly link libstdc++ --- openssl-dynamic/src/main/native-package/m4/tcnative.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openssl-dynamic/src/main/native-package/m4/tcnative.m4 b/openssl-dynamic/src/main/native-package/m4/tcnative.m4 index 45eb04cb1..890c6ae02 100644 --- a/openssl-dynamic/src/main/native-package/m4/tcnative.m4 +++ b/openssl-dynamic/src/main/native-package/m4/tcnative.m4 @@ -291,7 +291,7 @@ AC_DEFUN([TCN_CHECK_STATIC],[ LD_FLAGS_STATIC="-Wl,-exported_symbol,_JNI_*" ;; *linux*) - LD_FLAGS_STATIC="-Wl,--exclude-libs,ALL" + LD_FLAGS_STATIC="-static-libstdc++ -l:libstdc++.a -Wl,--exclude-libs,ALL" ;; *) LD_FLAGS_STATIC=""