On Fri, 8 Aug 2025, Thomas Klausner wrote:
I looked at what openssl 3.5.1 produces when I run './Configure; make':
openssl-3.5.1> ldd ./libssl.so
./libssl.so:
-lcrypto.3 => not found
-lpthread.1 => /usr/lib/libpthread.so.1
-lc.12 => /usr/lib/libc.so.12
Compared to what -current now has:
ldd /usr/lib/libssl.so
/usr/lib/libssl.so:
-lc.12 => /usr/lib/libc.so.12
Yeah:
```
$ readelf -d /usr/lib/libssl.so.15 | fgrep NEEDED
0x0000000000000001 (NEEDED) Shared library: [libcrypto.so.15]
0x0000000000000001 (NEEDED) Shared library: [libc.so.12]
$ readelf -d /usr/lib/libssl.so.16 | fgrep NEEDED
0x0000000000000001 (NEEDED) Shared library: [libc.so.12]
$
```
Patch (do what `src/crypto/external/bsd/openssl' does):
```
diff -urN src/crypto/external/apache2/openssl/lib/libssl.orig/Makefile
src/crypto/external/apache2/openssl/lib/libssl/Makefile
--- src/crypto/external/apache2/openssl/lib/libssl.orig/Makefile
2025-07-22 03:59:13.209124564 +0000
+++ src/crypto/external/apache2/openssl/lib/libssl/Makefile 2025-08-09
04:29:56.784741231 +0000
@@ -35,6 +35,8 @@
.include "srcs.inc"
+LIBDPLIBS+=crypto ${.CURDIR}/../libcrypto
+
AFLAGS+=-DELF
# This is from the include/openssl directory; see ../libcrypto/Makefile
```
-RVP