This commit is contained in:
BIN
src/build.x86_64/openssl-3.5.0.tar.gz
Normal file
BIN
src/build.x86_64/openssl-3.5.0.tar.gz
Normal file
Binary file not shown.
@@ -197,6 +197,13 @@ function install_openssl_musl() {
|
||||
local MUSL_PATH="${INSTALL_DIR}/${FULLARCH}"
|
||||
[ -d "$MUSL_PATH" ] || _die "MUSL_PATH does not exist: $MUSL_PATH"
|
||||
|
||||
LIBPATH="$MUSL_PATH/${ARCH_SHORT_PREFIX}/sysroot/usr/lib"
|
||||
[ -d "$LIBPATH" ] || LIBPATH="$MUSL_PATH/${ARCH_SHORT_PREFIX}/sysroot/usr/lib64"
|
||||
if [ -f "$LIBPATH/libssl.a" ]; then
|
||||
echo "OpenSSL $ARCH is already installed"
|
||||
return
|
||||
fi
|
||||
|
||||
local BUILD_DIR="${SCRIPT_DIR}/build.$ARCH"
|
||||
mkdir -p "$BUILD_DIR"
|
||||
|
||||
@@ -213,8 +220,11 @@ function install_openssl_musl() {
|
||||
OPENSSL_TARGET=$(toolchain_to_openssl_target "$FULLARCH")
|
||||
local SYSROOT="$MUSL_PATH/${ARCH_SHORT_PREFIX}/sysroot"
|
||||
local CC="$MUSL_PATH/bin/${ARCH_SHORT_PREFIX}-gcc"
|
||||
[ -f "$CC" ] || CC="$MUSL_PATH/bin/gcc"
|
||||
local AR="$MUSL_PATH/bin/${ARCH_SHORT_PREFIX}-ar"
|
||||
[ -f "$AR" ] || AR="$MUSL_PATH/bin/ar"
|
||||
local RANLIB="$MUSL_PATH/bin/${ARCH_SHORT_PREFIX}-ranlib"
|
||||
[ -f "$RANLIB" ] || RANLIB="$MUSL_PATH/bin/ranlib"
|
||||
|
||||
DEST_PATH="$SYSROOT/usr/lib/libssl.a"
|
||||
if [ -f "$DEST_PATH" ]; then
|
||||
@@ -243,7 +253,7 @@ function install_openssl_musl() {
|
||||
|
||||
cd "$PREVDIR"
|
||||
|
||||
echo "OpenSSL built and installed for all detected musl toolchains."
|
||||
echo "OpenSSL built and installed for $FULLARCH"
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user