From d14234f40e710f264931ba196d478c1084851cb4 Mon Sep 17 00:00:00 2001 From: George Chan Date: Wed, 28 Aug 2024 17:19:05 +0800 Subject: [PATCH] meson.build: Fix static build by replacing build flags by link flags Build flags wont carry to linker but link flags will. Fixes: cf2b67a ("meson.build: bring back -static") Signed-off-by: George Chan --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index a99654e..a4221f4 100644 --- a/meson.build +++ b/meson.build @@ -60,5 +60,5 @@ debugcc_srcs += configure_file( executable('debugcc', debugcc_srcs, - c_args : '-Wl,-static,-static-libgcc', + link_args: ['-static','-static-libgcc'], install: true)