Merge pull request #147 from bvbfan/openssl-fix

Fix openssl build on 32 bit Linux
This commit is contained in:
lbrynaut 2018-05-29 08:15:25 -05:00 committed by GitHub
commit df4a86a0df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -277,8 +277,9 @@ function build_openssl() {
-fPIC darwin64-x86_64-cc \ -fPIC darwin64-x86_64-cc \
no-shared no-dso no-engines > "${OPENSSL_LOG}" no-shared no-dso no-engines > "${OPENSSL_LOG}"
else else
[[ $(uname -m) = 'i686' ]] && OS_ARCH="linux-generic32" || OS_ARCH="linux-x86_64"
./Configure --prefix="${OPENSSL_PREFIX}" --openssldir="${OPENSSL_PREFIX}/ssl" \ ./Configure --prefix="${OPENSSL_PREFIX}" --openssldir="${OPENSSL_PREFIX}/ssl" \
linux-x86_64 -fPIC -static no-shared no-dso > "${OPENSSL_LOG}" ${OS_ARCH} -fPIC -static no-shared no-dso > "${OPENSSL_LOG}"
fi fi
background make "${OPENSSL_LOG}" "Waiting for openssl to finish building" background make "${OPENSSL_LOG}" "Waiting for openssl to finish building"
make install >> "${OPENSSL_LOG}" 2>&1 make install >> "${OPENSSL_LOG}" 2>&1