summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2018-06-09 05:47:07 +0200
committerEmīls Piņķis <emils@mullvad.net>2018-07-05 16:05:05 +0100
commit07d42498ac21369f6a515f2d25963056b06ff85a (patch)
treea9906b8078cb873dd5895f02b75b50b9815afd55
parent93903c446629c090c9196aae3e13c39ea4795b32 (diff)
downloadmullvadvpn-07d42498ac21369f6a515f2d25963056b06ff85a.tar.xz
mullvadvpn-07d42498ac21369f6a515f2d25963056b06ff85a.zip
Statically link towards custom OpenSSL
-rwxr-xr-xbuild.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 414289c9fb..1513e1b8e6 100755
--- a/build.sh
+++ b/build.sh
@@ -18,12 +18,14 @@ case "$(uname -s)" in
# Use static builds of libmnl and libnftnl from the binaries submodule
export LIBMNL_LIB_DIR="$SCRIPT_DIR/dist-assets/binaries/linux"
export LIBNFTNL_LIB_DIR="$SCRIPT_DIR/dist-assets/binaries/linux"
+ PLATFORM="linux"
;;
Darwin*)
export MACOSX_DEPLOYMENT_TARGET="10.7"
+ PLATFORM="macos"
;;
MINGW*)
- # config
+ PLATFORM="windows"
;;
esac
@@ -108,6 +110,10 @@ sed -i.bak \
# Compile and link all binaries.
################################################################################
+export OPENSSL_STATIC="1"
+export OPENSSL_LIB_DIR="$SCRIPT_DIR/dist-assets/binaries/$PLATFORM"
+export OPENSSL_INCLUDE_DIR="$SCRIPT_DIR/dist-assets/binaries/openssl/include"
+
if [[ "$(uname -s)" == "MINGW"* ]]; then
CPP_BUILD_MODES="Release" ./build_windows_modules.sh $@
fi