--- haproxy-3.4.1/Makefile.old 2026-06-29 15:25:24.631835164 -0400 +++ haproxy-3.4.1/Makefile 2026-06-29 15:25:59.646053389 -0400 @@ -688,7 +688,7 @@ LUA_INC := $(firstword $(foreach lib,lua5.5 lua55 lua5.4 lua54 lua5.3 lua53 lua,$(call check_lua_inc,$(lib),"/usr/include/"))) check_lua_lib = $(shell echo "int main(){}" | $(CC) $(if $(LUA_INC),-I$(LUA_INC)) -o /dev/null -x c - $(2) -l$(1) 2>/dev/null && echo $(1)) - LUA_LD_FLAGS := -Wl,$(if $(EXPORT_SYMBOL),$(EXPORT_SYMBOL),--export-dynamic) $(if $(LUA_LIB),-L$(LUA_LIB)) + LUA_LD_FLAGS := $(if $(LUA_LIB),-L$(LUA_LIB)) # Try to automatically detect the Lua library if not set ifeq ($(LUA_LIB_NAME),)