aboutsummaryrefslogtreecommitdiff
path: root/openssl/test/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/test/build.sh')
-rwxr-xr-xopenssl/test/build.sh14
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