add option to prefer static linking

This commit is contained in:
speedie 2023-05-12 16:46:34 +02:00
parent de77fb93f5
commit cbfea029d0

View file

@ -32,8 +32,10 @@ build() {
mkdir -p build/
[ "$static" = "true" ] && STATIC="--prefer-static"
if [ "$reconfigure" = "true" ]; then
meson setup --reconfigure \
meson setup --reconfigure $STATIC \
-Dxresources="$xresources" \
-Dfribidi="$fribidi" \
-Dxinerama="$xinerama" \
@ -47,7 +49,7 @@ build() {
build
else
meson setup \
-Dxresources="$xresources" \
-Dxresources="$xresources" $STATIC \
-Dfribidi="$fribidi" \
-Dxinerama="$xinerama" \
-Dimlib2="$imlib2" \