Skip to content
This repository was archived by the owner on May 24, 2026. It is now read-only.

Commit 890bb4a

Browse files
committed
Pain getting the right packages for alpine
1 parent 2654e4c commit 890bb4a

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,22 @@ jobs:
7777
- name: Build in Alpine
7878
run: |
7979
docker run --rm -v "$PWD":/src -w /src alpine:latest sh -c '
80+
set -e
8081
apk add --no-cache \
8182
gcc musl-dev meson vala bison pkgconf file \
82-
glib-dev glib-static libxml2-dev libxml2-static zlib-dev zlib-static \
83-
pcre2-dev pcre2-static util-linux-dev xz-dev xz-static
83+
glib-dev glib-static \
84+
libxml2-dev libxml2-static \
85+
zlib-dev zlib-static \
86+
pcre2-dev pcre2-static \
87+
libffi-dev \
88+
xz-dev xz-static \
89+
util-linux-dev util-linux-static
90+
echo "=== Verifying static libs ==="
91+
ls /usr/lib/lib{glib-2.0,gio-2.0,gobject-2.0,xml2,z,pcre2-8,ffi,lzma,mount,blkid}.a
8492
meson setup builddir --default-library=static --prefer-static
8593
meson compile -C builddir
8694
file builddir/wixl
95+
ldd builddir/wixl || echo "statically linked"
8796
builddir/wixl --version
8897
'
8998

meson.build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ if host_machine.system() == 'windows'
257257
'-ladvapi32', '-luserenv', '-liphlpapi', '-ldnsapi',
258258
'-lbcrypt',
259259
]
260+
elif host_machine.system() == 'linux'
261+
platform_link_args = ['-static']
260262
else
261263
platform_link_args = []
262264
endif

0 commit comments

Comments
 (0)