From 2542aca4a538a37061bc80cab68ef503ac063838 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Mon, 7 Mar 2016 22:54:15 +0100 Subject: travis: actually commit the build script --- .gitignore | 1 + build-aux/build-travis.sh | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100755 build-aux/build-travis.sh diff --git a/.gitignore b/.gitignore index 01d2647..33a6ebf 100644 --- a/.gitignore +++ b/.gitignore @@ -32,6 +32,7 @@ Makefile.in /stamp-h1 .dirstamp /build-aux/* +!/build-aux/build-travis.sh !/build-aux/build-windows.sh !/build-aux/git-version-gen diff --git a/build-aux/build-travis.sh b/build-aux/build-travis.sh new file mode 100755 index 0000000..68f8b05 --- /dev/null +++ b/build-aux/build-travis.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +set -ex + +rm -rf build +mkdir -p build + +MAKE_TARGET="${TARGET}" + +if test "x${TARGET}" = "xw*"; then + unset CC + export CFLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4" + export CHOST="x86_64-w64-mingw32" + test "x${TARGET}" = "xw32" && export CHOST="i686-w64-mingw32" + MAKE_TARGET="all" +else + export CFLAGS="-Wall -g" + export CONFIGURE_ARGS="--enable-tests --enable-valgrind" +fi + +pushd build > /dev/null + +../configure \ + ${CHOST:+--host=${CHOST} --target=${CHOST}} \ + --enable-ronn \ + --disable-silent-rules \ + ${CONFIGURE_ARGS} + +popd > /dev/null + +make -C build "${MAKE_TARGET}" -- cgit v1.2.3-18-g5258