From 05affa665700b7dc0e5aff427c943614a436615e Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Tue, 10 Jul 2018 22:51:37 +0530 Subject: try compiling with asm for our custom openssl (#4328) * try compiling with asm for our custom openssl * we also need to update the cache dir * try actually compiling it --- .travis/install.sh | 9 +++++---- .travis/run.sh | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to '.travis') diff --git a/.travis/install.sh b/.travis/install.sh index 6cb0a6b5..a4aa9a42 100755 --- a/.travis/install.sh +++ b/.travis/install.sh @@ -14,21 +14,22 @@ shlib_sed() { # download, compile, and install if it's not already present via travis # cache if [ -n "${OPENSSL}" ]; then - OPENSSL_DIR="ossl-1/${OPENSSL}" + OPENSSL_DIR="ossl-2/${OPENSSL}" if [[ ! -f "$HOME/$OPENSSL_DIR/bin/openssl" ]]; then curl -O "https://www.openssl.org/source/openssl-${OPENSSL}.tar.gz" tar zxf "openssl-${OPENSSL}.tar.gz" pushd "openssl-${OPENSSL}" - ./config shared no-asm no-ssl2 no-ssl3 -fPIC --prefix="$HOME/$OPENSSL_DIR" + ./config shared no-ssl2 no-ssl3 -fPIC --prefix="$HOME/$OPENSSL_DIR" shlib_sed make depend + make -j"$(nproc)" # avoid installing the docs # https://github.com/openssl/openssl/issues/6685#issuecomment-403838728 - make -j"$(nproc)" install_sw install_ssldirs + make install_sw install_ssldirs popd fi elif [ -n "${LIBRESSL}" ]; then - LIBRESSL_DIR="ossl-1/${LIBRESSL}" + LIBRESSL_DIR="ossl-2/${LIBRESSL}" if [[ ! -f "$HOME/$LIBRESSL_DIR/bin/openssl" ]]; then curl -O "https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${LIBRESSL}.tar.gz" tar zxf "libressl-${LIBRESSL}.tar.gz" diff --git a/.travis/run.sh b/.travis/run.sh index a68ad157..32e9874b 100755 --- a/.travis/run.sh +++ b/.travis/run.sh @@ -12,7 +12,7 @@ if [ -n "${LIBRESSL}" ]; then OPENSSL=$LIBRESSL fi if [ -n "${OPENSSL}" ]; then - OPENSSL_DIR="ossl-1/${OPENSSL}" + OPENSSL_DIR="ossl-2/${OPENSSL}" export PATH="$HOME/$OPENSSL_DIR/bin:$PATH" export CFLAGS="-I$HOME/$OPENSSL_DIR/include" -- cgit v1.2.3