]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: add USE_LUA to BUILD_OPTIONS when it's used
authorCyril Bonté <cyril.bonte@free.fr>
Sun, 16 Aug 2015 18:27:38 +0000 (20:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 16 Aug 2015 21:55:32 +0000 (23:55 +0200)
haproxy -vv doesn't indicate that USE_LUA was specified at compilation time.
This is caused by the Makefile, which doesn't update BUILD_OPTIONS.

Makefile

index 2517b37e4a5a9b2cfe6956bbd2d6458ac7709198..cc4b24167daf84124880c632b18452910605d927 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -595,6 +595,7 @@ endif
 ifneq ($(USE_LUA),)
 check_lua_lib = $(shell echo "int main(){}" | $(CC) -o /dev/null -x c - $(2) -l$(1) 2>/dev/null && echo $(1))
 
+BUILD_OPTIONS   += $(call ignore_implicit,USE_LUA)
 OPTIONS_CFLAGS  += -DUSE_LUA $(if $(LUA_INC),-I$(LUA_INC))
 LUA_LD_FLAGS := $(if $(LUA_LIB),-L$(LUA_LIB))
 ifeq ($(LUA_LIB_NAME),)