Skip to content

Commit 10c6708

Browse files
cuviperalexcrichton
authored andcommitted
Set OPENSSL_DIR for CI
1 parent 0af1653 commit 10c6708

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ matrix:
2525
MACOSX_DEPLOYMENT_TARGET=10.7
2626
os: osx
2727
before_install:
28+
- export OPENSSL_DIR=`brew --prefix openssl`
2829
- export OPENSSL_INCLUDE_DIR=`brew --prefix openssl`/include
2930
- export OPENSSL_LIB_DIR=`brew --prefix openssl`/include
3031
- env: TARGET=i686-apple-darwin
@@ -33,6 +34,7 @@ matrix:
3334
CFG_DISABLE_CROSS_TESTS=1
3435
os: osx
3536
before_install:
37+
- export OPENSSL_DIR=`brew --prefix openssl`
3638
- export OPENSSL_INCLUDE_DIR=`brew --prefix openssl`/include
3739
- export OPENSSL_LIB_DIR=`brew --prefix openssl`/include
3840

Makefile.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,12 @@ target/openssl/$(1).stamp: target/openssl/openssl-$$(OPENSSL_VERS).tar.gz \
251251

252252
# variables read by various build scripts to find openssl
253253
cargo-$(1): export OPENSSL_STATIC := 1
254+
cargo-$(1): export OPENSSL_DIR := $$(OPENSSL_INSTALL_$(1))
254255
cargo-$(1): export OPENSSL_ROOT_DIR := $$(OPENSSL_INSTALL_$(1))
255256
cargo-$(1): export OPENSSL_LIB_DIR := $$(OPENSSL_INSTALL_$(1))/lib
256257
cargo-$(1): export OPENSSL_INCLUDE_DIR := $$(OPENSSL_INSTALL_$(1))/include
257258
test-unit-$(1): export OPENSSL_STATIC := 1
259+
test-unit-$(1): export OPENSSL_DIR := $$(OPENSSL_INSTALL_$(1))
258260
test-unit-$(1): export OPENSSL_ROOT_DIR := $$(OPENSSL_INSTALL_$(1))
259261
test-unit-$(1): export OPENSSL_LIB_DIR := $$(OPENSSL_INSTALL_$(1))/lib
260262
test-unit-$(1): export OPENSSL_INCLUDE_DIR := $$(OPENSSL_INSTALL_$(1))/include

0 commit comments

Comments
 (0)