aboutsummaryrefslogtreecommitdiffstats
path: root/build-aux
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-12-12 02:57:53 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-12-12 02:57:53 +0100
commit20b83978064a0166847dac8705f44592f1432d60 (patch)
tree81047f0860b6ad323fbf5e47d749fb0c1a56204a /build-aux
parenteadf225bb3691411fd7d024987179f396325675f (diff)
downloadblogc-20b83978064a0166847dac8705f44592f1432d60.tar.gz
blogc-20b83978064a0166847dac8705f44592f1432d60.tar.bz2
blogc-20b83978064a0166847dac8705f44592f1432d60.zip
travis: build blogc binary statically linked for github-lambda
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/travis-build.sh11
1 files changed, 10 insertions, 1 deletions
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}"