Skip to content

Commit 6f67a9d

Browse files
committed
build: use cflags array instead string
Use a local array for the CFLAGS to improve readability. Signed-off-by: Daniel Wagner <[email protected]>
1 parent a88c520 commit 6f67a9d

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

scripts/build.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,17 @@ config_meson_default() {
9191
}
9292

9393
config_meson_musl() {
94-
local c_args="-U_GNU_SOURCE \
95-
-idirafter /usr/include -idirafter \
96-
/usr/include/x86_64-linux-gnu"
94+
local cflags=(
95+
-U_GNU_SOURCE
96+
-idirafter /usr/include
97+
-idirafter /usr/include/x86_64-linux-gnu
98+
)
99+
local cflags_str="${cflags[*]}"
97100

98101
CC="${CC}" "${MESON}" setup \
99102
--werror \
100103
--buildtype="${BUILDTYPE}" \
101-
-Dc_args="${c_args}" \
104+
-Dc_args="${cflags_str}" \
102105
-Ddefault_library=static \
103106
-Djson-c=disabled \
104107
-Dopenssl=disabled \

0 commit comments

Comments
 (0)