After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 603799 - CXXFLAGS defined flags should be made compiler specific
CXXFLAGS defined flags should be made compiler specific
Status: RESOLVED DUPLICATE of bug 652228
Product: pango
Classification: Platform
Component: general
1.26.x
Other All
: Normal normal
: ---
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2009-12-04 15:44 UTC by Erwann Chenede
Modified: 2011-09-05 14:20 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Erwann Chenede 2009-12-04 15:44:01 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
 
 
 #
Comment 1 Behdad Esfahbod 2009-12-10 03:20:55 UTC
Can you provide SunStudio equivalent for this?
Comment 2 Matthias Clasen 2011-09-05 14:20:43 UTC

*** This bug has been marked as a duplicate of bug 652228 ***