From 6a7da371e2a0df989667075b1a60c23607537b56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Mon, 11 Jul 2016 09:34:16 +0000 Subject: [PATCH] Add .build.sh --- .build.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 .build.sh diff --git a/.build.sh b/.build.sh new file mode 100755 index 0000000..4eafa4e --- /dev/null +++ b/.build.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +export CC="gcc -static" + +git clone https://github.com/jedisct1/libsodium --depth=1 --branch stable +cd libsodium || exit 1 +./autogen.sh && ./configure CFLAGS=-flto LDFLAGS=-flto --enable-minimal --disable-shared --prefix=/usr && make install +cd .. + +./autogen.sh && ./configure CFLAGS=-flto LDFLAGS=-flto && make +[ -x glorytun ] || exit 1 + +mkdir -p deploy +strip -s glorytun +mv glorytun deploy/glorytun-$(cat VERSION)-$(uname -m).bin