Hello Damjan, All, replying to this other message.
On Mon, Apr 08, 2024 at 02:42:01PM +0000, Damjan Jovanovic wrote: [...] > Here's how you set RPATH in Curl: > > ---snip--- > diff --git a/main/curl/makefile.mk b/main/curl/makefile.mk > index 044bf4d8c9..ecef11820a 100644 > --- a/main/curl/makefile.mk > +++ b/main/curl/makefile.mk > @@ -59,6 +59,7 @@ curl_LDFLAGS+:=$(ARCH_FLAGS) > ssl_param=--with-ssl > .ELSE > ssl_param=--with-ssl=$(OUTDIR) > +curl_LDFLAGS+=-Wl,-z,origin -Wl,-rpath,\\\$$\$$ORIGIN > PATCH_FILES+= curl-bundled_openssl.patch > .ENDIF > > ---snip--- > > which gets libcurl.so to search for the OpenSSL dynamic libraries in its > own directory before the system directories: > > $ ldd solver/450/unxfbsdx.pro/lib/libcurl.so > ... > libssl.so.3 => /path/to/openoffice-git/main/solver/450/ > unxfbsdx.pro/lib/libssl.so.3 (0x299f766bc000) > libcrypto.so.3 => /path/to/openoffice/openoffice-git/main/solver/450/ > unxfbsdx.pro/lib/libcrypto.so.3 (0x299f77747000) It works under Linux too! If we want to use the dynamically linked OpenSSL, then, we have to amend 0ca5b4b7b8e66fbc937f89173ce45fcc179e72b3 and have main/scp2/source/ooo/file_library_ooo.scp include "libssl.so.3" and "libcrypto.so.3" instead of "libssl.so" and "libcrypto.so". I think the same should happen under FreeBSD, so you may want to commit all these edits together after testing them? Next step will be asking p11-kit for the CA certificates, as you proposed here: https://lists.apache.org/thread/3rb1t9jf5fnp4nfxr2z9dxmzt9l61tjq otherwise Linux builds may be unable to validate certificate chains, unfortunately. Best regards, -- Arrigo --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org