Ports/OpenSSL: Use install_prefix to fix resource install

The `--openssldir` parameter was causing OpenSSL to search for its
resources in the wrong location, e.g.:

  `/serenity/Build/i686/Root/usr/local/ssl/...`

By using `--install_prefix`, the build system understands where to put
the OpenSSL files and does not leak the build path into the compiled
binaries.
This commit is contained in:
Jelle Raaijmakers 2021-06-11 01:13:16 +02:00 committed by Andreas Kling
parent b6c1f0af5d
commit c5ece5e787
Notes: sideshowbarker 2024-07-18 12:27:08 +09:00

View File

@ -11,7 +11,7 @@ auth_import_key="8657ABB260F056B1E5190839D9C4D26D0E604491"
auth_opts="openssl-${version}.tar.gz.asc openssl-${version}.tar.gz"
depends="zlib"
configopts="--prefix=${SERENITY_INSTALL_ROOT}/usr/local -DOPENSSL_SYS_SERENITY=1 --openssldir=${SERENITY_INSTALL_ROOT}/usr/local/ssl linux-elf zlib no-tests no-threads no-asm"
configopts="--prefix=/usr/local --install_prefix=${SERENITY_INSTALL_ROOT} -DOPENSSL_SYS_SERENITY=1 linux-elf zlib no-tests no-threads no-asm"
configure() {
run ./"$configscript" $configopts