GNOME Bugzilla – Bug 603799
CXXFLAGS defined flags should be made compiler specific
Last modified: 2011-09-05 14:20:43 UTC
in configure.in CXXFLAGS should only be enabled for gcc (e.g. sunstudio doesn't understand these flags). See below a proposed patch : diff --git a/configure.in b/configure.in index 259c083..874afa4 100644 --- a/configure.in +++ b/configure.in @@ -142,8 +142,9 @@ AC_PROG_CXX AC_CHECK_FUNCS(mprotect sysconf getpagesize) AC_CHECK_HEADERS(unistd.h sys/mman.h) -# Make sure we don't link to libstdc++ (needs de-gcc-fication) -CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions" +if test "$GCC" = yes; then + CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions" +fi #
Can you provide SunStudio equivalent for this?
*** This bug has been marked as a duplicate of bug 652228 ***