Make: Remove 32 bit support from universal build

Installing the library fails on macOS 12, if we use the compiler flags
for the i386 architecture.

See also:

- https://github.com/nigels-com/glew/pull/348#issuecomment-1032874467
This commit is contained in:
René Schwaiger 2022-02-09 09:08:43 +01:00 committed by Nigel Stewart
parent 5239c3ae21
commit 5dbae5a837

View File

@ -1,5 +1,5 @@
#
# Needs to be clang toolchain for universal: -arch i386 -arch x86_64 -arch arm64
# Needs to be clang toolchain for universal: -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 -arch arm64
LDFLAGS.EXTRA = -arch i386 -arch x86_64 -arch arm64
CFLAGS.EXTRA += -arch x86_64 -arch arm64
LDFLAGS.EXTRA = -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'