]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: makefile: make sure LUA_INC and LUA_LIB are always initialized
authorWilly Tarreau <w@1wt.eu>
Thu, 15 Dec 2022 09:47:14 +0000 (10:47 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 Dec 2022 15:53:35 +0000 (16:53 +0100)
commit2a3a882fe20508c021944f7623928dd75a52ab5a
treeb76a7a4892f5738651025b87c069217f46b70858
parent682b78b4e67ab6f216f482fea073d352a37d12ed
BUILD: makefile: make sure LUA_INC and LUA_LIB are always initialized

While LUA_INC is sometimes set in the makefile (only when LUA_LIB_NAME
is not set), LUA_LIB is never pre-initialized and faces the risk of
being accidently inherited from the environment. Let's make sure both
are properly reset first when not explicitly set. For this we always
set LUA_INC based on the autodetection if it's not set, and always
pre-initialize LUA_LIB to empty. This also helps make that block
slightly less difficult to understand.
Makefile