Last macOS has renamed flag --export-dynamic to -export_dynamic, just fixed it
---
 Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Makefile b/Makefile
index 2acf5028..914e3d19 100644
--- a/Makefile
+++ b/Makefile
@@ -630,7 +630,11 @@ check_lua_inc = $(shell if [ -d $(2)$(1) ]; then echo 
$(2)$(1); fi;)
 
 BUILD_OPTIONS   += $(call ignore_implicit,USE_LUA)
 OPTIONS_CFLAGS  += -DUSE_LUA $(if $(LUA_INC),-I$(LUA_INC))
+ifeq ($(shell uname), Darwin)
+LUA_LD_FLAGS := -Wl,-export_dynamic $(if $(LUA_LIB),-L$(LUA_LIB))
+else
 LUA_LD_FLAGS := -Wl,--export-dynamic $(if $(LUA_LIB),-L$(LUA_LIB))
+endif
 ifeq ($(LUA_LIB_NAME),)
 # Try to automatically detect the Lua library
 LUA_LIB_NAME := $(firstword $(foreach lib,lua5.3 lua53 lua,$(call 
check_lua_lib,$(lib),$(LUA_LD_FLAGS))))
-- 
2.16.1


Reply via email to