From 20b83978064a0166847dac8705f44592f1432d60 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Mon, 12 Dec 2016 02:57:53 +0100 Subject: travis: build blogc binary statically linked for github-lambda --- build-aux/travis-build.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'build-aux') diff --git a/build-aux/travis-build.sh b/build-aux/travis-build.sh index 15f8bb0..bea4a2b 100755 --- a/build-aux/travis-build.sh +++ b/build-aux/travis-build.sh @@ -7,8 +7,13 @@ mkdir -p build pushd build > /dev/null +export CFLAGS="-Wall -g -O0" + +if [[ "x${TARGET}" = "xblogc-github-lambda" ]]; then + export LDFLAGS="-static" +fi + ../configure \ - CFLAGS="-Wall -g -O0" \ --enable-ronn \ --disable-silent-rules \ --enable-tests \ @@ -18,4 +23,8 @@ pushd build > /dev/null popd > /dev/null +if [[ "x${TARGET}" = "xblogc-github-lambda" ]]; then + export LDFLAGS="-all-static" +fi + make -C build "${TARGET}" -- cgit v1.2.3-18-g5258