88abffb7d2
GitOrigin-RevId: bc9b956714ed6eac5f8888322aac5bc41389defa
14 lines
589 B
Diff
14 lines
589 B
Diff
diff --git a/src/Makefile b/src/Makefile
|
|
index 2538503f..7e6380da 100644
|
|
--- a/src/Makefile
|
|
+++ b/src/Makefile
|
|
@@ -320,7 +320,9 @@ ifeq (Darwin,$(TARGET_SYS))
|
|
$(error missing: export MACOSX_DEPLOYMENT_TARGET=XX.YY)
|
|
endif
|
|
TARGET_STRIP+= -x
|
|
+ ifneq (arm64,$(shell uname -m))
|
|
TARGET_XCFLAGS+= -DLUAJIT_UNWIND_EXTERNAL
|
|
+ endif
|
|
TARGET_XSHLDFLAGS= -dynamiclib -single_module -undefined dynamic_lookup -fPIC
|
|
TARGET_DYNXLDOPTS=
|
|
TARGET_XSHLDFLAGS+= -install_name $(TARGET_DYLIBPATH) -compatibility_version $(MAJVER).$(MINVER) -current_version $(MAJVER).$(MINVER).$(RELVER)
|