Skip to content

Commit

Permalink
Merge pull request #2656 from otp-bank/nar/fix-nif-on-apple-m1
Browse files Browse the repository at this point in the history
Fix NIF compilation on Apple M1.
  • Loading branch information
ferd authored Nov 30, 2021
2 parents 26d929b + 369676b commit b3429d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions priv/templates/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ C_SRC_OUTPUT ?= $(CURDIR)/../priv/$(PROJECT).so
UNAME_SYS := $(shell uname -s)
ifeq ($(UNAME_SYS), Darwin)
CC ?= cc
CFLAGS ?= -O3 -std=c99 -arch x86_64 -finline-functions -Wall -Wmissing-prototypes
CXXFLAGS ?= -O3 -arch x86_64 -finline-functions -Wall
LDFLAGS ?= -arch x86_64 -flat_namespace -undefined suppress
CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
CXXFLAGS ?= -O3 -finline-functions -Wall
LDFLAGS ?= -flat_namespace -undefined suppress
else ifeq ($(UNAME_SYS), FreeBSD)
CC ?= cc
CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
Expand Down

0 comments on commit b3429d6

Please sign in to comment.