diff options
| author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2018-06-02 14:29:00 +0200 | 
|---|---|---|
| committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2018-06-02 14:29:00 +0200 | 
| commit | 7426cfa1685efcd9b41748207183d1d9c1464b60 (patch) | |
| tree | 04ae91ee73d0dc5bbd98a68496d64cc629472ee3 | |
| parent | a4eb8a35157dcbfb02b88cda8ece417299ec1373 (diff) | |
| download | blogc-7426cfa1685efcd9b41748207183d1d9c1464b60.tar.gz blogc-7426cfa1685efcd9b41748207183d1d9c1464b60.tar.bz2 blogc-7426cfa1685efcd9b41748207183d1d9c1464b60.zip | |
build: added static-all target
| -rw-r--r-- | .travis.yml | 3 | ||||
| -rw-r--r-- | .yatr.yml | 6 | ||||
| -rwxr-xr-x | build-aux/build-static-all.sh | 13 | 
3 files changed, 22 insertions, 0 deletions
| diff --git a/.travis.yml b/.travis.yml index 8ee127d..7849ca7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -61,6 +61,9 @@ matrix:          - TARGET=static      - compiler: gcc        env: +        - TARGET=static-all +    - compiler: gcc +      env:          - TARGET=win32        addons:          apt: @@ -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 | 
