Update Mac OSX builds to use -std=c89 rather than -ansi

This commit is contained in:
Nigel Stewart 2016-11-13 11:57:00 +10:00
parent 013667e3e1
commit 7f92f9adf7
4 changed files with 5 additions and 1 deletions

View File

@ -3,7 +3,7 @@ NAME = $(GLEW_NAME)
CC = cc
LD = cc
CFLAGS.EXTRA = -dynamic -fno-common
CFLAGS.EXTRA += -ansi -pedantic
CFLAGS.EXTRA += -std=c89 -pedantic
#CFLAGS.EXTRA += -no-cpp-precomp
LDFLAGS.EXTRA =
ifneq (undefined, $(origin GLEW_APPLE_GLX))

View File

@ -1,3 +1,5 @@
# Note: PPC is no longer actively maintained for GLEW, but this configuration
# is here for reference.
GLEW_DEST = /usr/local
NAME = $(GLEW_NAME)
CC = cc

View File

@ -6,6 +6,7 @@ AR =
LIBTOOL = libtool -static -o
STRIP =
CFLAGS.EXTRA = -dynamic -fno-common
CFLAGS.EXTRA += -std=c89 -pedantic
#CFLAGS.EXTRA += -no-cpp-precomp
CFLAGS.EXTRA += -arch i386 -arch x86_64
LDFLAGS.EXTRA = -arch i386 -arch x86_64

View File

@ -3,6 +3,7 @@ NAME = $(GLEW_NAME)
CC = cc
LD = cc
CFLAGS.EXTRA = -arch x86_64 -dynamic -fno-common
CFLAGS.EXTRA += -std=c89 -pedantic
#CFLAGS.EXTRA += -no-cpp-precomp
LDFLAGS.EXTRA = -arch x86_64
ifneq (undefined, $(origin GLEW_APPLE_GLX))