diff options
author | Dominic Letz <[email protected]> | 2021-10-19 23:17:33 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2022-08-30 14:08:47 +0200 |
commit | 94718f7715a05087d966a0ca4b32527892ac6cfc (patch) | |
tree | 88d302f8cd6e37b922f8feadf7de6ece2526b0fa | |
parent | bf7a194b0b473186d14193eefdab9b65fa927443 (diff) | |
download | erlang.mk-94718f7715a05087d966a0ca4b32527892ac6cfc.tar.gz erlang.mk-94718f7715a05087d966a0ca4b32527892ac6cfc.tar.bz2 erlang.mk-94718f7715a05087d966a0ca4b32527892ac6cfc.zip |
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.
-rw-r--r-- | plugins/c_src.mk | 6 |
1 files 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 |