]> www.infradead.org Git - users/sagi/libnvme.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 15:44:48 +0000 (16:44 +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 4953c84b899a855128e73e4e66c70e3d5e4547ea..84267cc94b55f42c66c4cfc8590e980016170459 100755 (executable)
@@ -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                             \