# HG changeset patch # User twisti # Date 1245254936 25200 # Node ID d1fe2c2fbdacf5c98a42f872beb7da36812fc6f8 # Parent c6386080541be611b882c0090dfb25a5e5dfdfab 6851829: solaris build fails with 5.8 compilers Summary: Solaris builds with the CC 5.8 compilers (used for jdk6 update builds) fail while compiling adlc. Reviewed-by: never diff -r c6386080541b -r d1fe2c2fbdac make/solaris/makefiles/adlc.make --- a/make/solaris/makefiles/adlc.make Wed Jun 10 12:19:48 2009 -0700 +++ b/make/solaris/makefiles/adlc.make Wed Jun 17 09:08:56 2009 -0700 @@ -68,7 +68,9 @@ # CFLAGS_WARN holds compiler options to suppress/enable warnings. # Compiler warnings are treated as errors -CFLAGS_WARN = +w -errwarn +ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1) + CFLAGS_WARN = +w -errwarn +endif CFLAGS += $(CFLAGS_WARN) ifeq ("${Platform_compiler}", "sparcWorks")