]> git.kaiwu.me - haproxy.git/commit
BUILD: makefile: fix build error with GNU make 4.2.1 and /bin/dash
authorWilly Tarreau <w@1wt.eu>
Wed, 3 Jun 2026 10:01:47 +0000 (12:01 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 3 Jun 2026 10:04:21 +0000 (12:04 +0200)
commit326618b9a9f61f7cd64d444ee567d1d8628f70be
tree3cdfec2ede182cd884c24005024ff3e1d44e7102
parente1b5f3bbc355d86d4257e6858163908e348415cc
BUILD: makefile: fix build error with GNU make 4.2.1 and /bin/dash

The latest fix in the Makefile in commit 9993688954 ("BUILD: makefile/lua:
use the system's default library before all other variants") broke the
build on a machine with GNU make 4.2.1 and /bin/dash:

  Makefile:690: *** unterminated call to function 'shell': missing ')'.  Stop.

It's caused by the '#' in '#include'. Protecting it with a backslash
fixes the make issue but moves it to the shell where it's echoed in the
output. Printf '\043' works but not sure if it's everywhere yet. At this
point better just revert that tiny part which was made to refine the
presence check for lua.h by checking that it contains valid C code. If
the commit above is backported, this one will have to be as well.
Makefile