makefile: Support clean builds of simulators with slirp support with older versions of gcc
This commit is contained in:
parent
33536f0759
commit
a18a4f42b9
1 changed files with 9 additions and 1 deletions
10
makefile
10
makefile
|
@ -902,7 +902,15 @@ ifeq (HP-UX,$(OSTYPE))
|
||||||
CC_STD = -std=gnu99
|
CC_STD = -std=gnu99
|
||||||
else
|
else
|
||||||
ifeq (,$(SUNC_VERSION))
|
ifeq (,$(SUNC_VERSION))
|
||||||
CC_STD = -std=c99
|
ifneq (,$(findstring error,$(shell $(GCC) -std=c11 -version /dev/null 2>&1)))
|
||||||
|
CC_STD = -std=c11
|
||||||
|
else
|
||||||
|
ifneq (,$(findstring error,$(shell $(GCC) -std=gnu99 -version /dev/null 2>&1)))
|
||||||
|
CC_STD = -std=gnu99
|
||||||
|
else
|
||||||
|
CC_STD = -std=c99 -fms-extensions
|
||||||
|
endif
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
CC_OUTSPEC = -o $@
|
CC_OUTSPEC = -o $@
|
||||||
|
|
Loading…
Add table
Reference in a new issue