summaryrefslogtreecommitdiff
path: root/src/ext/keccak-tiny/do.sh
diff options
context:
space:
mode:
authorYawning Angel <yawning@schwanenlied.me>2015-12-18 20:32:10 +0000
committerYawning Angel <yawning@schwanenlied.me>2015-12-18 20:32:10 +0000
commite993003792f4905db9d6271c809c708b2e9f8cf4 (patch)
treee6c503e2832b971f0af0ce15db575fefe22044bf /src/ext/keccak-tiny/do.sh
parent3317cd3a1f4e3a7883bf9a5eba3f9a13097fe437 (diff)
downloadtor-e993003792f4905db9d6271c809c708b2e9f8cf4.tar.gz
tor-e993003792f4905db9d6271c809c708b2e9f8cf4.zip
Clean import of keccak-tiny (https://github.com/coruus/keccak-tiny)
As of commit: 64b6647514212b76ae7bca0dea9b7b197d1d8186
Diffstat (limited to 'src/ext/keccak-tiny/do.sh')
-rw-r--r--src/ext/keccak-tiny/do.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ext/keccak-tiny/do.sh b/src/ext/keccak-tiny/do.sh
new file mode 100644
index 0000000000..cf99f249e7
--- /dev/null
+++ b/src/ext/keccak-tiny/do.sh
@@ -0,0 +1,5 @@
+#!/usr/bin/env sh
+cc=$(which clang-3.6||which gcc-4.9||which clang||||which gcc)
+so=$(test -f /etc/asl.conf && printf dylib|| printf so)
+$cc "-Dinline=__attribute__((__always_inline__))" -O3 -march=native -std=c11 -Wextra -Wpedantic -Wall -dynamic -shared keccak-tiny.c -o libkeccak-tiny.$so
+$cc -Os -march=native -std=c11 -Wextra -Wpedantic -Wall -dynamic -shared keccak-tiny.c -o libkeccak-tiny-small.$so