2018-08-08 06:12:38 -05:00
|
|
|
set -e
|
|
|
|
|
2018-10-07 12:41:58 -05:00
|
|
|
clang++ -c -mavx512f -mavx512vl crypto/poly1305/poly1305-x64-osx.s crypto/chacha20/chacha20-x64-osx.s
|
2018-08-08 06:12:38 -05:00
|
|
|
|
2018-10-07 12:41:58 -05:00
|
|
|
clang++ -g -O3 -I . -std=c++11 -DWITH_NETWORK_BSD=1 -DNDEBUG=1 -Wno-deprecated-declarations -fno-exceptions -fno-rtti -ffunction-sections -o tunsafe \
|
|
|
|
tunsafe_amalgam.cpp \
|
|
|
|
crypto/aesgcm/aesni_gcm-x64-osx.s \
|
|
|
|
crypto/aesgcm/aesni-x64-osx.s \
|
|
|
|
crypto/aesgcm/ghash-x64-osx.s \
|
|
|
|
chacha20-x64-osx.o \
|
|
|
|
poly1305-x64-osx.o
|
2018-08-08 06:12:38 -05:00
|
|
|
|
|
|
|
cp tunsafe tunsafe.unstripped
|
|
|
|
strip tunsafe
|
|
|
|
rm -f tunsafe_osx.zip
|
|
|
|
zip tunsafe_osx.zip tunsafe readme_osx.txt
|
|
|
|
|