diff options
Diffstat (limited to 'config.mk')
-rw-r--r-- | config.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config.mk b/config.mk index 51ca5f0a6b3..313761b86d6 100644 --- a/config.mk +++ b/config.mk @@ -122,6 +122,14 @@ else CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes endif +# avoid trigraph warnings while parsing pci.h (produced by NIOS gcc-2.9) +# this option have to be placed behind -Wall -- that's why it is here +ifeq ($(ARCH),nios) +ifeq ($(findstring 2.9,$(shell $(CC) --version)),2.9) +CFLAGS := $(CPPFLAGS) -Wno-trigraphs +endif +endif + AFLAGS_DEBUG := -Wa,-gstabs AFLAGS := $(AFLAGS_DEBUG) -D__ASSEMBLY__ $(CPPFLAGS) |