From e01053e04a207bc0a7cf07cc9924e37450540fb4 Mon Sep 17 00:00:00 2001 From: Michael Meffie Date: Thu, 25 Jan 2018 18:27:00 -0500 Subject: [PATCH] SOLARIS: suppress -xarch=amd64 is deprecated warnings The -m64 flag to specify 64bit builds was introduced in Sun Studio 10, circa 2005. The old flag -xarch=amd64 was deprecated as of Sun Studio 12, circa 2007. Ever since Sun Studio 12, the compiler complains with a warning message when the old -xarch=amd64 flag is given: cc: Warning: -xarch=amd64 is deprecated, use -m64 to create 64-bit programs Update the cflags when building the Solaris kernel module for x86 to use the modern -m64 under Solaris 11 or later. Since Solaris 11 has been available since 2010, it is very unlikely a compiler on Solaris 11 would not support the modern -m64 flag. Change-Id: Ib13c00f1c69f34ab1905a8dd4a46c90895046f25 Reviewed-on: https://gerrit.openafs.org/12959 Reviewed-by: Andrew Deason Reviewed-by: Benjamin Kaduk Tested-by: BuildBot --- src/libafs/MakefileProto.SOLARIS.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libafs/MakefileProto.SOLARIS.in b/src/libafs/MakefileProto.SOLARIS.in index 7753066..0c8e41f 100644 --- a/src/libafs/MakefileProto.SOLARIS.in +++ b/src/libafs/MakefileProto.SOLARIS.in @@ -47,10 +47,14 @@ DBUG= -Wu,-save_args KDEFS_32 = -xarch=v8 KDEFS_64 = -xarch=v9 - + KDEFS_32 = KDEFS_64 = -xarch=amd64 -xmodel=kernel + +KDEFS_32 = +KDEFS_64 = -m64 -xmodel=kernel + CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KDEFS) @SOLARIS_CC_KOPTS@ ${DBUG} -- 1.9.4