diff options
| -rw-r--r-- | .travis.yml | 2 | ||||
| -rwxr-xr-x | build.sh | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index be815c7db0..3a4dcdf3a2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,8 @@ sudo: false env: global: - MACOSX_DEPLOYMENT_TARGET="10.7" + - LIBMNL_LIB_DIR="$TRAVIS_BUILD_DIR/dist-assets/binaries/linux" + - LIBNFTNL_LIB_DIR="$TRAVIS_BUILD_DIR/dist-assets/binaries/linux" git: submodules: false @@ -7,13 +7,17 @@ set -eu +SCRIPT_DIR="$( cd "$(dirname "$0")" ; pwd -P )" + ################################################################################ # Platform specific configuration. ################################################################################ case "$(uname -s)" in Linux*) - # config + # 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" ;; Darwin*) export MACOSX_DEPLOYMENT_TARGET="10.7" @@ -68,7 +72,6 @@ if [[ "${1:-""}" != "--dev-build" ]]; then fi cargo +stable clean - else echo "!! Development build. Not for general distribution !!" GIT_COMMIT=$(git rev-parse --short HEAD) |
