From: Azat Khuzhin Date: Sun, 16 Oct 2016 20:46:09 +0000 (+0300) Subject: travis-ci/osx: fix compiling/linking openssl libraries X-Git-Tag: release-2.1.7-rc~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d2f8d4b806c0784be4ba26abf05f767cb984527;p=libevent travis-ci/osx: fix compiling/linking openssl libraries And we need that $(echo /path/*) otherwise bash will expand it only during assignment that variable to another one, and this doesn't work correctly. --- diff --git a/.travis.yml b/.travis.yml index 894b276d..d2210dd8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,6 +29,14 @@ before_install: if [ "$CC" == "gcc" ]; then export CC=$(ls -t /usr/local/bin/gcc-?.?); fi + + export OPENSSL_ROOT=$(echo /usr/local/Cellar/openssl/*); + export + CMAKE_INCLUDE_PATH=$OPENSSL_ROOT/include + CMAKE_LIBRARY_PATH=$OPENSSL_ROOT/lib; + export + CFLAGS=-I$CMAKE_INCLUDE_PATH + LDFLAGS=-L$CMAKE_LIBRARY_PATH; fi addons: apt: