X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=Makefile;h=d08fb6a54d5a7bccd98272744e9b5744c144df05;hb=9f9ce3c369b7fbcc47496331ff28fad80302a42c;hp=5264df0a6ba791c63a4e1e9b3f3d87480f219abd;hpb=ec1754f091c3c06d76592a3f9fecf6184f27e4c9;p=u-boot diff --git a/Makefile b/Makefile index 5264df0a6b..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 = -rc3 +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