Skip to content
Browse files

Mostly fix Sun Studio configuration using SunCC compiler

The SunCC compiler in Sun Studio 12.5 crashes on the m4 macro test test_type_deduction (line 257). The Sun Studio 12.6 compiler finishes configuring.
  • Loading branch information...
noloader committed Sep 13, 2018
1 parent ff3891d commit e0de5edc21d32173620469792ae2ff61d55a44a9
Showing with 4 additions and 1 deletion.
  1. +4 −1 m4/acx_check_suncc.m4
@@ -26,7 +26,7 @@ AC_DEFUN([ACX_CHECK_SUNCC],[
AS_IF([test "$SUNCC" = "yes" -a "x${ac_cv_env_CXXFLAGS_set}" = "x"],[
dnl Sun Studio has a crashing bug with -xO4 in some cases. Keep this
dnl at -xO3 until a proper test to detect those crashes can be done.
CXXFLAGS="-g0 -xO3 -xlibmil -xdepend -xbuiltin -mt -compat=5 -library=stlport4 -library=Crun -template=no%extdef ${CXXFLAGS}"
CXXFLAGS="-g0 -xO3 -xlibmil -xdepend -xbuiltin -mt -template=no%extdef ${CXXFLAGS}"

case $host_os in
@@ -67,4 +67,7 @@ AC_DEFUN([ACX_CHECK_SUNCC],[

AS_IF([test "$target_cpu" = "sparc" -a "x$SUNCC" = "xyes" ],[
CXXFLAGS="-xregs=no%appl ${CXXFLAGS}"

0 comments on commit e0de5ed

Please sign in to comment.
You can’t perform that action at this time.