aboutsummaryrefslogtreecommitdiffstats
path: root/build-aux/build-static-all.sh
blob: f277d62c38ec98334e6527b544097e95b634d892 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

set -ex

DESTDIR="${PN}-${TARGET}-amd64-${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" "${DESTDIR}"
popd > /dev/null