]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
build: pass the linker argument via muon argument
authorDaniel Wagner <dwagner@suse.de>
Thu, 16 Nov 2023 15:19:44 +0000 (16:19 +0100)
committerDaniel Wagner <wagi@monom.org>
Thu, 16 Nov 2023 16:56:07 +0000 (17:56 +0100)
Use the canonical way to set the static build using the command line
argument.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
scripts/build.sh

index 6a36f009e1cdad35633f3d69d0c74b37477ffde6..c20a004a597a8c87541d94f6183b52cf9e1473f8 100755 (executable)
@@ -183,8 +183,10 @@ tools_build_muon() {
 }
 
 config_muon_default() {
-    CC="${CC}" CFLAGS="${CFLAGS} -static"               \
-        ninja="${SAMU}" "${MUON}" setup                 \
+    CC="${CC}" CFLAGS="${CFLAGS}" ninja="${SAMU}"       \
+        "${MUON}" setup                                 \
+        -Ddefault_library=static                        \
+        -Dc_link_args="-static"                         \
         -Dwrap_mode=forcefallback                       \
         -Dlibnvme:json-c=disabled                       \
         -Dlibnvme:python=disabled                       \