diff options
| author | Steven Fackler <[email protected]> | 2015-12-17 21:26:06 -0800 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2015-12-17 21:26:06 -0800 |
| commit | 6195bd4fd8a46ab62cbbc5f654c9743371722dc1 (patch) | |
| tree | 0ccf253c93e6d4923c75ad51744e91dd1839f97f /openssl/test/build.sh | |
| parent | Merge branch 'release-v0.7.2' into release (diff) | |
| parent | Release v0.7.3 (diff) | |
| download | rust-openssl-0.7.3.tar.xz rust-openssl-0.7.3.zip | |
Merge branch 'release-v0.7.3' into releasev0.7.3
Diffstat (limited to 'openssl/test/build.sh')
| -rwxr-xr-x | openssl/test/build.sh | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/openssl/test/build.sh b/openssl/test/build.sh index 9b336b77..f52ded60 100755 --- a/openssl/test/build.sh +++ b/openssl/test/build.sh @@ -1,9 +1,21 @@ #!/bin/bash set -e +if [ "$TRAVIS_OS_NAME" == "osx" ]; then + exit 0 +fi + +if [ "$TARGET" == "arm-unknown-linux-gnueabihf" ]; then + export C_INCLUDE_PATH=/usr/arm-linux-gnueabihf/include + CROSS=arm-linux-gnueabihf- + OS_COMPILER=linux-armv4 +else + OS_COMPILER=linux-x86_64 +fi + mkdir /tmp/openssl cd /tmp/openssl curl https://openssl.org/source/openssl-1.0.2e.tar.gz | tar --strip-components=1 -xzf - -./config --prefix=$HOME/openssl shared +./Configure --prefix=$HOME/openssl shared --cross-compile-prefix=$CROSS $OS_COMPILER make make install |