From b3677e48f67862a1d312ffeda9c9013e74dcfe1f Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Thu, 16 Nov 2023 16:19:44 +0100 Subject: [PATCH] build: pass the linker argument via muon argument Use the canonical way to set the static build using the command line argument. Signed-off-by: Daniel Wagner --- scripts/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 4953c84b..84267cc9 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -172,9 +172,9 @@ tools_build_muon() { } config_muon_default() { - CC="${CC}" CFLAGS="${CFLAGS} -static" \ - ninja="${SAMU}" "${MUON}" setup \ + CC="${CC}" ninja="${SAMU}" "${MUON}" setup \ -Ddefault_library=static \ + -Dc_link_args="-static" \ -Djson-c=disabled \ -Dopenssl=disabled \ -Dkeyutils=disabled \ -- 2.50.1