Skip to content

Commit 6899e95

Browse files
committed
build: add a musl build configuration
Signed-off-by: Michal Rábek <[email protected]>
1 parent e8cdb46 commit 6899e95

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

scripts/build.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,23 @@ config_meson_default() {
8282
"${BUILDDIR}"
8383
}
8484

85+
config_meson_musl() {
86+
local c_args="-U_GNU_SOURCE \
87+
-idirafter /usr/include -idirafter \
88+
/usr/include/x86_64-linux-gnu"
89+
90+
CC="${CC}" "${MESON}" setup \
91+
--werror \
92+
--buildtype="${BUILDTYPE}" \
93+
-Dc_args="${c_args}" \
94+
-Ddefault_library=static \
95+
-Djson-c=disabled \
96+
-Dopenssl=disabled \
97+
-Dkeyutils=disabled \
98+
-Dpython=disabled \
99+
"${BUILDDIR}"
100+
}
101+
85102
config_meson_libdbus() {
86103
CC="${CC}" "${MESON}" setup \
87104
--werror \

0 commit comments

Comments
 (0)