Hi,
I was wondering why is the gcc-dev (gcc 3.4.3) package used instead of sunstudioexpress given that most of OpenSolaris is built with it. Wouldn't it make more sense to use the recommended compiler in the OpenSolaris community ?
Also, many configure scripts detect gcc and add optimization flags, and don't do that for other compilers. I would suggest instead to use:
export CC=cc
export CXX=CC
export CFLAGS="-fast -m64"
export CXXFLAGS="-fast -m64"
And for software that has OpenMP directives:
export CC=cc
export CXX=CC
export CFLAGS="-fast -m64 -xopenmp"
export CXXFLAGS="-fast -m64 -xopenmp"
if the build process is done with the Sun Studio Express compilers.
Thank you.
I was wondering why is the gcc-dev (gcc 3.4.3) package used instead of sunstudioexpress given that most of OpenSolaris is built with it. Wouldn't it make more sense to use the recommended compiler in the OpenSolaris community ?
Also, many configure scripts detect gcc and add optimization flags, and don't do that for other compilers. I would suggest instead to use:
export CC=cc
export CXX=CC
export CFLAGS="-fast -m64"
export CXXFLAGS="-fast -m64"
And for software that has OpenMP directives:
export CC=cc
export CXX=CC
export CFLAGS="-fast -m64 -xopenmp"
export CXXFLAGS="-fast -m64 -xopenmp"
if the build process is done with the Sun Studio Express compilers.
Thank you.
Comment