summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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