From: cantor Date: Fri, 11 May 2007 04:44:58 +0000 (+0000) Subject: Try to patch around Sun compiler bug. X-Git-Tag: 2.4.1~368 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fopensaml2.git;a=commitdiff_plain;h=b4def70d7a83153ba50287964563205f1ac37179 Try to patch around Sun compiler bug. git-svn-id: https://svn.middleware.georgetown.edu/cpp-opensaml2/trunk@246 fb386ef7-a10c-0410-8ebf-fd3f8e989ab0 --- diff --git a/configure.ac b/configure.ac index 63f0f97..4883328 100644 --- a/configure.ac +++ b/configure.ac @@ -32,6 +32,7 @@ fi AC_PROG_CC([gcc gcc3 cc]) AC_PROG_CXX([g++ g++3 c++ CC]) +AC_CANONICAL_HOST if test "$GCC" = "yes" ; then # AC_HAVE_GCC_VERSION(4,0,0,0, @@ -43,6 +44,15 @@ if test "$GCC" = "yes" ; then # ]) CFLAGS="$GCC_CFLAGS" CXXFLAGS="$GCC_CXXFLAGS" +else +# Fix for Sun Workshop compiler in debug mode, may be Sun case #6360993 + case "${host_cpu}-${host_os}" in + *solaris*) + if test "$CXX" = "CC" ; then + CXXFLAGS="$CXXFLAGS -Qoption ccfe -stabs=no%dfltlit+no%dflthlp" + fi + ;; + esac fi AC_DISABLE_STATIC