Skip to content

Commit

Permalink
Install missing packages for OpenSSL in Centos 6
Browse files Browse the repository at this point in the history
rework OpenSSL install command

Change-Id: I6d5b0134d72313575aec6c2f6d654e44ef2befe4
  • Loading branch information
JonasScharpf committed Oct 25, 2023
1 parent 29960c9 commit 92da33e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ OPENSSL_VERSION=3.0.11
DIR_NAME=openssl-${OPENSSL_VERSION}
ARCHIVE_NAME=${DIR_NAME}.tar.gz
TARGET_DIR="/opt"
TARGET="" # for x64, use the default target

# OpenSSL "config" seems to have problems with detecting 32bit architecture in some cases
CONFIG_COMMAND=config
[ "${ARCHITECTURE}" = i386 ] && CONFIG_COMMAND="Configure linux-x86"
[ "${ARCHITECTURE}" = i386 ] && TARGET="linux-x86"
# Increase this to enforce a recreation of the build cache
BUILD_ID=7
BUILD_ID=8

build_package() {
mkdir -p "$TARGET_DIR/src"
Expand All @@ -30,7 +30,7 @@ build_package() {
# Now build the package
tar xf "${ARCHIVE_NAME}"
cd "${DIR_NAME}"
./"${CONFIG_COMMAND}" --libdir=lib --prefix="${TARGET_DIR}/${DIR_NAME}" enable-md2 -Wl,-rpath,/opt/"${DIR_NAME}"/lib
./config "${TARGET}" --libdir=lib --prefix="${TARGET_DIR}/${DIR_NAME}" enable-md2 -Wl,-rpath,/opt/"${DIR_NAME}"/lib
make -j6
make install

Expand Down

0 comments on commit 92da33e

Please sign in to comment.