Add warnings ands some suppressions to Sun Studio builds

pull/186/head
Jeffrey Walton 2016-06-09 00:51:23 -04:00
parent 77e4bd7a7b
commit 37dad288fd
1 changed files with 3 additions and 2 deletions

View File

@ -229,12 +229,13 @@ LDFLAGS += -flat_namespace -undefined suppress -m
endif
endif
# Add -errtags=yes to get the name for a warning suppression
ifneq ($(SUN_COMPILER),0) # override flags for CC Sun C++ compiler
IS_64 := $(shell isainfo -b 2>/dev/null | grep -i -c "64")
ifeq ($(SUN_COMPILER)$(IS_64),11)
CXXFLAGS += -native -template=no%extdef -m64 -Kpic
CXXFLAGS += -native -template=no%extdef -w -erroff=wvarhidemem -erroff=voidretw -m64 -Kpic
else ifeq ($(SUN_COMPILER)$(IS_64),10)
CXXFLAGS += -native -template=no%extdef -m32
CXXFLAGS += -native -template=no%extdef -w -erroff=wvarhidemem -erroff=voidretw -m32
endif
SUN_CC10_BUGGY := $(shell $(CXX) -V 2>&1 | $(EGREP) -c "CC: Sun .* 5\.10 .* (2009|2010/0[1-4])")
ifneq ($(SUN_CC10_BUGGY),0)