mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-22 05:45:07 +00:00
Make: Support Apple Silicon in universal build
This commit is contained in:
parent
5f57b09c04
commit
5239c3ae21
@ -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
|
GLEW_DEST = /usr/local
|
||||||
NAME = $(GLEW_NAME)
|
NAME = $(GLEW_NAME)
|
||||||
@ -11,8 +11,8 @@ STRIP =
|
|||||||
CFLAGS.EXTRA = -dynamic -fno-common
|
CFLAGS.EXTRA = -dynamic -fno-common
|
||||||
CFLAGS.EXTRA += -pedantic
|
CFLAGS.EXTRA += -pedantic
|
||||||
CFLAGS.EXTRA += -fPIC
|
CFLAGS.EXTRA += -fPIC
|
||||||
CFLAGS.EXTRA += -arch i386 -arch x86_64
|
CFLAGS.EXTRA += -arch i386 -arch x86_64 -arch arm64
|
||||||
LDFLAGS.EXTRA = -arch i386 -arch x86_64
|
LDFLAGS.EXTRA = -arch i386 -arch x86_64 -arch arm64
|
||||||
ifneq (undefined, $(origin GLEW_APPLE_GLX))
|
ifneq (undefined, $(origin GLEW_APPLE_GLX))
|
||||||
CFLAGS.EXTRA += -std=c99
|
CFLAGS.EXTRA += -std=c99
|
||||||
CFLAGS.EXTRA += -I/usr/X11R6/include -D'GLEW_APPLE_GLX'
|
CFLAGS.EXTRA += -I/usr/X11R6/include -D'GLEW_APPLE_GLX'
|
||||||
|
Loading…
Reference in New Issue
Block a user