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