X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=Makefile;h=d08fb6a54d5a7bccd98272744e9b5744c144df05;hb=899455176058d673887a762aa38853188a030af4;hp=316944c9d038762154fca2c49d127b0e511dd7c2;hpb=b25f8e2112b1582ce6386e846800a31bab688e50;p=u-boot diff --git a/Makefile b/Makefile index 316944c9d0..d08fb6a54d 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,9 @@ -# -# SPDX-License-Identifier: GPL-2.0+ -# +# SPDX-License-Identifier: GPL-2.0+ VERSION = 2018 PATCHLEVEL = 05 SUBLEVEL = -EXTRAVERSION = -rc2 +EXTRAVERSION = NAME = # *DOCUMENTATION* @@ -260,6 +258,15 @@ HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer \ $(if $(CONFIG_TOOLS_DEBUG),-g) HOSTCXXFLAGS = -O2 +# With the move to GCC 6, we have implicitly upgraded our language +# standard to GNU11 (see https://gcc.gnu.org/gcc-5/porting_to.html). +# Some Linux distributions (including RHEL7, SLES13, Debian 8) still +# have older compilers as their default, so we make it explicit for +# these that our host tools are GNU11 (i.e. C11 w/ GNU extensions). +ifeq ($(HOSTOS),linux) +HOSTCFLAGS += --std=gnu11 +endif + ifeq ($(HOSTOS),cygwin) HOSTCFLAGS += -ansi endif