Update OpenSSL to 3.0
This commit is contained in:
parent
e2acf44a52
commit
5ab621cb66
2 changed files with 14 additions and 12 deletions
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
SCRIPT_REPO="https://github.com/openssl/openssl.git"
|
SCRIPT_REPO="https://github.com/openssl/openssl.git"
|
||||||
SCRIPT_COMMIT="OpenSSL_1_1_1t"
|
SCRIPT_COMMIT="openssl-3.0.8"
|
||||||
SCRIPT_TAGFILTER="OpenSSL_1_1_1*"
|
SCRIPT_TAGFILTER="openssl-3.0.*"
|
||||||
|
|
||||||
ffbuild_enabled() {
|
ffbuild_enabled() {
|
||||||
return 0
|
return 0
|
||||||
|
@ -11,6 +11,7 @@ ffbuild_enabled() {
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" openssl
|
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" openssl
|
||||||
cd openssl
|
cd openssl
|
||||||
|
git submodule update --init --recursive --depth=1
|
||||||
|
|
||||||
local myconf=(
|
local myconf=(
|
||||||
threads
|
threads
|
||||||
|
@ -20,6 +21,7 @@ ffbuild_dockerbuild() {
|
||||||
enable-ec
|
enable-ec
|
||||||
enable-srp
|
enable-srp
|
||||||
--prefix="$FFBUILD_PREFIX"
|
--prefix="$FFBUILD_PREFIX"
|
||||||
|
--libdir=lib
|
||||||
)
|
)
|
||||||
|
|
||||||
if [[ $TARGET == win64 ]]; then
|
if [[ $TARGET == win64 ]]; then
|
||||||
|
@ -51,15 +53,20 @@ ffbuild_dockerbuild() {
|
||||||
export CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
|
export CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
|
||||||
|
|
||||||
# OpenSSL build system prepends the cross prefix itself
|
# OpenSSL build system prepends the cross prefix itself
|
||||||
export CC="gcc"
|
export CC="${CC/${FFBUILD_CROSS_PREFIX}/}"
|
||||||
export CXX="g++"
|
export CXX="${CXX/${FFBUILD_CROSS_PREFIX}/}"
|
||||||
export AR="gcc-ar"
|
export AR="${AR/${FFBUILD_CROSS_PREFIX}/}"
|
||||||
export RANLIB="gcc-ranlib"
|
export RANLIB="${RANLIB/${FFBUILD_CROSS_PREFIX}/}"
|
||||||
|
|
||||||
./Configure "${myconf[@]}"
|
./Configure "${myconf[@]}"
|
||||||
|
|
||||||
sed -i -e "/^CFLAGS=/s|=.*|=${CFLAGS}|" -e "/^LDFLAGS=/s|=[[:space:]]*$|=${LDFLAGS}|" Makefile
|
sed -i -e "/^CFLAGS=/s|=.*|=${CFLAGS}|" -e "/^LDFLAGS=/s|=[[:space:]]*$|=${LDFLAGS}|" Makefile
|
||||||
|
|
||||||
make -j$(nproc)
|
make -j$(nproc) build_sw
|
||||||
make install_sw
|
make install_sw
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ffbuild_configure() {
|
||||||
|
[[ $TARGET == win* ]] && return 0
|
||||||
|
echo --enable-openssl
|
||||||
|
}
|
||||||
|
|
|
@ -21,8 +21,3 @@ ffbuild_dockerbuild() {
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
make install
|
make install
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_configure() {
|
|
||||||
[[ $TARGET == win* ]] && return -1
|
|
||||||
echo --enable-mbedtls
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue