Archived
This forum has been archived. Please start a new discussion on GitHub.
Compiler flag -xarch deprecated in Sun Studio 12
Hi,
in the upcoming Sun Studio 12 compiler (CC: Sun C++ 5.9 SunOS_i386 2007/05/03) the flag -xarch is deprecated.
With the following changes to config/Make.rules.SunOS the warning goes away:
ifeq ($(CCVERSION),5.9)
ifeq ($(LP64),yes)
CXXARCHFLAGS = -m64
else
CXXARCHFLAGS = -m32
endif
else
ifeq ($(MACHINE_TYPE),sun4u)
ifeq ($(LP64),yes)
CXXARCHFLAGS = -xarch=v9
else
CXXARCHFLAGS = -xarch=v8plus
endif
endif
ifeq ($(MACHINE_TYPE),i86pc)
ifeq ($(LP64),yes)
CXXARCHFLAGS = -xarch=amd64
endif
endif
endif
Best regards,
Markus
in the upcoming Sun Studio 12 compiler (CC: Sun C++ 5.9 SunOS_i386 2007/05/03) the flag -xarch is deprecated.
With the following changes to config/Make.rules.SunOS the warning goes away:
ifeq ($(CCVERSION),5.9)
ifeq ($(LP64),yes)
CXXARCHFLAGS = -m64
else
CXXARCHFLAGS = -m32
endif
else
ifeq ($(MACHINE_TYPE),sun4u)
ifeq ($(LP64),yes)
CXXARCHFLAGS = -xarch=v9
else
CXXARCHFLAGS = -xarch=v8plus
endif
endif
ifeq ($(MACHINE_TYPE),i86pc)
ifeq ($(LP64),yes)
CXXARCHFLAGS = -xarch=amd64
endif
endif
endif
Best regards,
Markus
0