From 7426cfa1685efcd9b41748207183d1d9c1464b60 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Sat, 2 Jun 2018 14:29:00 +0200 Subject: build: added static-all target --- .travis.yml | 3 +++ .yatr.yml | 6 ++++++ build-aux/build-static-all.sh | 13 +++++++++++++ 3 files changed, 22 insertions(+) create mode 100755 build-aux/build-static-all.sh diff --git a/.travis.yml b/.travis.yml index 8ee127d..7849ca7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -59,6 +59,9 @@ matrix: - compiler: gcc env: - TARGET=static + - compiler: gcc + env: + - TARGET=static-all - compiler: gcc env: - TARGET=win32 diff --git a/.yatr.yml b/.yatr.yml index 842e2d9..8c5fca4 100644 --- a/.yatr.yml +++ b/.yatr.yml @@ -36,6 +36,12 @@ targets: - --disable-runserver - --enable-make-embedded task_script: build-aux/build-static.sh + static-all: + configure_args: + - "CFLAGS=-Wall -g -O2" + - --disable-tests + - --prefix=/ + task_script: build-aux/build-static-all.sh win32: configure_args: - CC= diff --git a/build-aux/build-static-all.sh b/build-aux/build-static-all.sh new file mode 100755 index 0000000..dd7c243 --- /dev/null +++ b/build-aux/build-static-all.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +set -ex + +DESTDIR="${PN}-${TARGET}-${PV}" + +${MAKE_CMD:-make} LDFLAGS="-all-static" +${MAKE_CMD:-make} DESTDIR="${PWD}/root/${DESTDIR}" install +install -m 644 ../LICENSE "root/${DESTDIR}/LICENSE" + +pushd root > /dev/null +tar -cvJf "../${DESTDIR}.tar.xz" . +popd > /dev/null -- cgit v1.2.3-18-g5258