]> git.kaiwu.me - haproxy.git/commit
BUILD: Makefile: force $(shell command -v ...) to run through the shell
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 10 Nov 2026 15:48:50 +0000 (16:48 +0100)
committerOlivier Houchard <cognet@ci0.org>
Thu, 12 Nov 2026 12:34:49 +0000 (13:34 +0100)
commit1d75af865ee38319e136a97dd93503fc19acd2af
tree0d728ad643f04544d4a62b0060e51d2117521b7d
parent6334b928631c08b8009de078b6eeff1dfc1583e3
BUILD: Makefile: force $(shell command -v ...) to run through the shell

$(shell) commands with no metacharacter and not starting with a shell
builtin may be execvp()'d directly instead of being run through the
shell. "command" is a shell builtin that only appears in make's own
builtin list since version 4.3, so with make <= 4.2 the USE_MINIDEBUG
probe failed with "Command not found" and silently disabled the
embedded symbol table. Adding "2>/dev/null || :" brings metacharacters
which force the shell path on all make versions.

This should fix build on older distributions such as Ubuntu 18.04.
Makefile