diff --git a/Makefile.defs b/Makefile.defs index 37e35f6f7..16d5ec9e5 100644 --- a/Makefile.defs +++ b/Makefile.defs @@ -44,17 +44,17 @@ 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) - AR= /usr/bin/ar rcs - RANLIB= /usr/bin/ranlib + AR= /usr/bin/ar rcs + RANLIB= /usr/bin/ranlib else - AR= ar rcs - RANLIB= ranlib + AR= ar rcs + RANLIB= ranlib endif ifeq ($(DEBUG),1) @@ -82,13 +82,13 @@ DEFCFLAGS += -Wswitch-enum -Wno-error=switch-enum ifeq ($(shell expr $(CC_VERSION) \>= 10), 1) ifneq ($(DETECTED_COMPILER), clang) DEFCFLAGS += -Wno-stringop-overflow -Wno-error=stringop-overflow - endif + 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