openssl-1.1: include LDFLAGS hack so that openssl1.1 binary can find openssl libraries

This commit is contained in:
Yaksh Bariya 2022-02-26 10:29:34 +00:00
parent c55f730e85
commit 2106f178a7
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581

View File

@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Library implementing the SSL and TLS protocols as well a
TERMUX_PKG_LICENSE="BSD"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.1.1m
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://www.openssl.org/source/openssl-${TERMUX_PKG_VERSION/\~/-}.tar.gz
TERMUX_PKG_SHA256=f89199be8b23ca45fc7cb9f1d8d3ee67312318286ad030f5316aca6462db6c96
TERMUX_PKG_DEPENDS="ca-certificates, zlib"
@ -15,6 +16,7 @@ TERMUX_PKG_REPLACES="openssl (<< 1.1.1m)"
termux_step_pre_configure() {
test -d $TERMUX_PREFIX/include/openssl && mv $TERMUX_PREFIX/include/openssl{,.tmp} || :
LDFLAGS="-L$TERMUX_PREFIX/lib/openssl-1.1 -Wl,-rpath=$TERMUX_PREFIX/lib/openssl-1.1 $LDFLAGS"
}
termux_step_configure() {