summaryrefslogtreecommitdiffstats
path: root/pkgs/development/interpreters/luajit/aarch64-darwin-disable-unwind-external.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/interpreters/luajit/aarch64-darwin-disable-unwind-external.patch')
-rw-r--r--pkgs/development/interpreters/luajit/aarch64-darwin-disable-unwind-external.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/luajit/aarch64-darwin-disable-unwind-external.patch b/pkgs/development/interpreters/luajit/aarch64-darwin-disable-unwind-external.patch
new file mode 100644
index 000000000000..dcfb1e9d4e7f
--- /dev/null
+++ b/pkgs/development/interpreters/luajit/aarch64-darwin-disable-unwind-external.patch
@@ -0,0 +1,14 @@
+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)