aboutsummaryrefslogtreecommitdiff
path: root/m4/acx_check_suncc.m4
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-09-12 22:18:27 -0400
committerJeffrey Walton <noloader@gmail.com>2018-09-12 22:18:27 -0400
commite0de5edc21d32173620469792ae2ff61d55a44a9 (patch)
tree9beed36d44c6632343cf2f0a16c5e8b39a817d8c /m4/acx_check_suncc.m4
parentff3891dab1b1f462d90a68666d14f57eb5fea34f (diff)
downloadprotobuf-e0de5edc21d32173620469792ae2ff61d55a44a9.tar.gz
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.
Diffstat (limited to 'm4/acx_check_suncc.m4')
-rw-r--r--m4/acx_check_suncc.m45
1 files changed, 4 insertions, 1 deletions
diff --git a/m4/acx_check_suncc.m4 b/m4/acx_check_suncc.m4
index 8bc0a890d..0a9a5770b 100644
--- a/m4/acx_check_suncc.m4
+++ b/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],[
;;
esac
+ AS_IF([test "$target_cpu" = "sparc" -a "x$SUNCC" = "xyes" ],[
+ CXXFLAGS="-xregs=no%appl ${CXXFLAGS}"
+ ])
])