aboutsummaryrefslogtreecommitdiffstats
path: root/build-aux/build-static-all.sh
blob: dd7c243da1e2a6d791a8c0fabad8de437ad1e25e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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