From 94718f7715a05087d966a0ca4b32527892ac6cfc Mon Sep 17 00:00:00 2001 From: Dominic Letz Date: Tue, 19 Oct 2021 23:17:33 +0200 Subject: Removed hardcoded `-arch x86_64` for MacOS nifs For current macs the flag seems problematic as it overrides the default choice of building for the current architecture and hence prevents building on ARM based macs. --- plugins/c_src.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/c_src.mk b/plugins/c_src.mk index d6d5d15..332b9fa 100644 --- a/plugins/c_src.mk +++ b/plugins/c_src.mk @@ -35,9 +35,9 @@ ifeq ($(PLATFORM),msys2) CXXFLAGS ?= -O3 -finline-functions -Wall else ifeq ($(PLATFORM),darwin) CC ?= cc - CFLAGS ?= -O3 -std=c99 -arch x86_64 -Wall -Wmissing-prototypes - CXXFLAGS ?= -O3 -arch x86_64 -Wall - LDFLAGS ?= -arch x86_64 -flat_namespace -undefined suppress + CFLAGS ?= -O3 -std=c99 -Wall -Wmissing-prototypes + CXXFLAGS ?= -O3 -Wall + LDFLAGS ?= -flat_namespace -undefined suppress else ifeq ($(PLATFORM),freebsd) CC ?= cc CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes -- cgit v1.2.3