summaryrefslogtreecommitdiffstats
path: root/manual tests/4 standalone binaries/build_linux_package.sh
blob: 783981ef58dce39efa2a24fc0a22979ccfd0f414 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh -eu

curdir=`pwd`
rm -rf buildtmp
mkdir buildtmp
LDFLAGS=-static-libstdc++ ~/meson/meson.py buildtmp --buildtype=release --prefix=/tmp/myapp --libdir=lib --strip
ninja -C buildtmp install
rm -rf buildtmp
cd /tmp/
tar czf myapp.tar.gz myapp
mv myapp.tar.gz "$curdir"
rm -rf myapp