aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Weinstein <[email protected]>2016-08-17 00:58:05 -0400
committerDavid Weinstein <[email protected]>2016-08-17 00:58:05 -0400
commite64d3fcfcc98c5a79a709692a724d8d02b913dd6 (patch)
treede3e0c967a3e15ca67369718ab56fce06b555a96
parentImprove build script (diff)
downloadrust-openssl-e64d3fcfcc98c5a79a709692a724d8d02b913dd6.tar.xz
rust-openssl-e64d3fcfcc98c5a79a709692a724d8d02b913dd6.zip
Fix finicky sha1 stdin format
-rwxr-xr-xopenssl/test/build.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/openssl/test/build.sh b/openssl/test/build.sh
index 775479dd..2c38f3a3 100755
--- a/openssl/test/build.sh
+++ b/openssl/test/build.sh
@@ -24,9 +24,10 @@ cd /tmp/openssl
curl -o $OUT -L --max-redirs $MAX_REDIRECTS https://openssl.org/source/$OPENSSL \
|| curl -o $OUT -L --max-redirs ${MAX_REDIRECTS} http://mirrors.ibiblio.org/openssl/source/$OPENSSL
-echo "$SHA1 $OUT" | sha1sum -c - || exit 1
+echo "$SHA1 $OUT" | sha1sum -c -
tar --strip-components=1 -xzf $OUT
+
./Configure --prefix=$HOME/openssl shared --cross-compile-prefix=$CROSS $OS_COMPILER
make
make install