From 970a5f138edf5d3f041d17d7124255f75e8e241f Mon Sep 17 00:00:00 2001 From: eschnett Date: Wed, 21 Aug 2013 18:01:16 +0000 Subject: Export some build flags. Do not build shared libraries. git-svn-id: http://svn.cactuscode.org/projects/ExternalLibraries/OpenSSL/trunk@48 091d3ff0-52bc-4db5-b7a6-18201e4c0cca --- configure.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.sh b/configure.sh index a3174c5..7551d73 100644 --- a/configure.sh +++ b/configure.sh @@ -118,6 +118,11 @@ then unset LIBS unset MAKEFLAGS # For some reason, OpenSSL does not compile with this unset options # OpenSSL's 'config' script uses $options itself + # OpenSSL doesn't want to link with -fopenmp (can't pass + # LDFLAGS?), so instead we remove all OpenMP flags + export CPPFLAGS=$(echo '' $CPPFLAGS | sed -e 's/-fopenmp//') + export CFLAGS=$(echo '' $CFLAGS | sed -e 's/-fopenmp//') + export LDFLAGS=$(echo '' $LDFLAGS | sed -e 's/-fopenmp//') echo "OpenSSL: Preparing directory structure..." mkdir build external done 2> /dev/null || true @@ -130,7 +135,7 @@ then echo "OpenSSL: Configuring..." cd ${NAME} - ./config --prefix=${OPENSSL_DIR} + ./config --prefix=${OPENSSL_DIR} no-shared echo "OpenSSL: Building..." ${MAKE} -- cgit v1.2.3