guix: Fix "Ignoring empty string" CMake warning for non-Linux hosts
What changed, and why it matters
This is a one-line build-script fix that removes a harmless CMake warning on non-Linux build hosts. It changes how an optional linker-flags variable is passed to CMake so that, when the variable is empty, no empty argument is passed. There is no indication this affects runtime behavior, wallet funds, consensus, network security, or built binaries.
No security action required. Treat as normal build-quality maintenance.
Security signals we found
No security-relevant signals in the diff or commit message.
Change is purely a build-script warning suppression.
No references to vulnerabilities, CVEs, security researchers, or incident reports.
Evidence from the diff
In contrib/guix/libexec/build.sh, the invocation of cmake was passing “${CMAKE_EXE_LINKER_FLAGS}” as a quoted argument. When the variable was unset/empty on non-Linux hosts, CMake received an empty string argument and emitted ‘Ignoring empty string’. The patch uses the shell parameter expansion ${CMAKE_EXE_LINKER_FLAGS+”$CMAKE_EXE_LINKER_FLAGS”}, which expands to nothing if the variable is unset, and to the quoted value if set. This is a build-hygiene change only.
Changed components
contrib/guix/libexec/build.shGuix deterministic build pipeline (non-Linux hosts only)Inspect captured patch +1 / −1
diff --git a/contrib/guix/libexec/build.sh b/contrib/guix/libexec/build.sh
index 0bc3888a..0ec058b8 100755
--- a/contrib/guix/libexec/build.sh
+++ b/contrib/guix/libexec/build.sh
@@ -166,7 +166,7 @@ mkdir -p "$DISTSRC"
-DWITH_CCACHE=OFF \
-Werror=dev \
${CONFIGFLAGS} \
- "${CMAKE_EXE_LINKER_FLAGS}"
+ ${CMAKE_EXE_LINKER_FLAGS+"$CMAKE_EXE_LINKER_FLAGS"}
# Build Bitcoin Core
cmake --build build -j "$JOBS"
Why this scored 16/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.