From 5239c3ae21fe51698d7efba24abd42ffb325874e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rene=CC=81=20Schwaiger?= Date: Sun, 6 Feb 2022 12:23:14 +0100 Subject: [PATCH] Make: Support Apple Silicon in universal build --- config/Makefile.darwin-universal | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/Makefile.darwin-universal b/config/Makefile.darwin-universal index f2412e3..4e01df9 100644 --- a/config/Makefile.darwin-universal +++ b/config/Makefile.darwin-universal @@ -1,5 +1,5 @@ # -# Needs to be clang toolchain for universal: -arch i386 -arch x86_64 +# Needs to be clang toolchain for universal: -arch i386 -arch x86_64 -arch arm64 # GLEW_DEST = /usr/local NAME = $(GLEW_NAME) @@ -11,8 +11,8 @@ STRIP = CFLAGS.EXTRA = -dynamic -fno-common CFLAGS.EXTRA += -pedantic CFLAGS.EXTRA += -fPIC -CFLAGS.EXTRA += -arch i386 -arch x86_64 -LDFLAGS.EXTRA = -arch i386 -arch x86_64 +CFLAGS.EXTRA += -arch i386 -arch x86_64 -arch arm64 +LDFLAGS.EXTRA = -arch i386 -arch x86_64 -arch arm64 ifneq (undefined, $(origin GLEW_APPLE_GLX)) CFLAGS.EXTRA += -std=c99 CFLAGS.EXTRA += -I/usr/X11R6/include -D'GLEW_APPLE_GLX'