]> granicus.if.org Git - libevent/commitdiff
travis-ci/osx: fix compiling/linking openssl libraries
authorAzat Khuzhin <a3at.mail@gmail.com>
Sun, 16 Oct 2016 20:46:09 +0000 (23:46 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Sun, 16 Oct 2016 22:04:05 +0000 (01:04 +0300)
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.

.travis.yml

index 894b276dcabbe4021b7746d7094089fb876a9d4a..d2210dd8da151b1560a174177a3d35c4bc308904 100644 (file)
@@ -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: