How to fix -xarch deprecation warning for Solaris sample makefiles?

(Doc ID 1116076.1)

Last updated on JULY 17, 2017

Applies to:

Precompilers - Version to [Release 10.2 to 11.2]
Oracle Database - Enterprise Edition - Version to [Release 10.2 to 11.2]
Oracle Solaris on SPARC (64-bit)
Oracle Solaris on SPARC (32-bit)
***Checked for relevance on 26-Nov-2013***


Using the Oracle makefile, you see output including the warning:

make -f build EXE=sample1 OBJS=sample1.o
cc -xarch=v9 -o sample1 sample1.o -L/opt/64bit/app/oracle/product/ -lclntsh `cat /opt/64bit/app/oracle/product/` `cat /opt/64bit/app/oracle/product/` -R/opt/64bit/app/oracle/product/ -laio -lposix4 -lm -lthread
cc: Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms