From 5f7d9d2f68d51fe7fd89f752484920aa5680258a Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Sat, 29 Aug 2015 15:48:13 -0500 Subject: update travis to static link homebrew openssl (plus one dynamic job) --- .travis/run.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to '.travis') diff --git a/.travis/run.sh b/.travis/run.sh index 17358655..b519c9fc 100755 --- a/.travis/run.sh +++ b/.travis/run.sh @@ -8,7 +8,12 @@ if [[ "$(uname -s)" == "Darwin" ]]; then if [[ "${OPENSSL}" != "0.9.8" ]]; then # set our flags to use homebrew openssl export ARCHFLAGS="-arch x86_64" - export LDFLAGS="-L/usr/local/opt/openssl/lib" + # if the build is static we need different LDFLAGS + if [[ "${CRYPTOGRAPHY_BUILD_STATIC}" == "1" ]]; then + export LDFLAGS="/usr/local/opt/openssl/lib/libssl.a /usr/local/opt/openssl/lib/libcrypto.a" + else + export LDFLAGS="-L/usr/local/opt/openssl/lib" + fi export CFLAGS="-I/usr/local/opt/openssl/include" # The Travis OS X jobs are run for two versions # of OpenSSL, but we only need to run the -- cgit v1.2.3