This commit is contained in:
Philippe Teuwen 2020-10-21 18:41:18 +02:00
commit e50be8cb3a

View file

@ -44,9 +44,9 @@ platform = $(shell uname)
DETECTED_OS=$(platform)
ifeq ($(shell $(CC) -v 2>&1 | grep -c "clang version"), 1)
DETECTED_COMPILER = clang
DETECTED_COMPILER = clang
else
DETECTED_COMPILER = gcc
DETECTED_COMPILER = gcc
endif
ifeq ($(platform),Darwin)
@ -85,10 +85,10 @@ ifeq ($(shell expr $(CC_VERSION) \>= 10), 1)
endif
endif
ifeq ($(platform),Darwin)
# their readline has strict-prototype issues
DEFCFLAGS += -Wno-strict-prototypes
# their readline has strict-prototype issues
DEFCFLAGS += -Wno-strict-prototypes
else
DEFCFLAGS += -Wstrict-prototypes
DEFCFLAGS += -Wstrict-prototypes
endif
# Next ones are activated only if GCCEXTRA=1 or CLANGEXTRA=1