diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2018-06-09 05:47:07 +0200 |
|---|---|---|
| committer | Emīls Piņķis <emils@mullvad.net> | 2018-07-05 16:05:05 +0100 |
| commit | 07d42498ac21369f6a515f2d25963056b06ff85a (patch) | |
| tree | a9906b8078cb873dd5895f02b75b50b9815afd55 | |
| parent | 93903c446629c090c9196aae3e13c39ea4795b32 (diff) | |
| download | mullvadvpn-07d42498ac21369f6a515f2d25963056b06ff85a.tar.xz mullvadvpn-07d42498ac21369f6a515f2d25963056b06ff85a.zip | |
Statically link towards custom OpenSSL
| -rwxr-xr-x | build.sh | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |
