[pango] Bug 591413 – needs to link with libstdc++
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pango] Bug 591413 – needs to link with libstdc++
- Date: Thu, 13 Aug 2009 00:22:37 +0000 (UTC)
commit 4770396ca172bab95dd4d0b34a272816f1b26922
Author: Behdad Esfahbod <behdad behdad org>
Date: Wed Aug 12 19:45:50 2009 -0400
Bug 591413 â?? needs to link with libstdc++
Enforce -fno-exceptions better.
configure.in | 29 ++++++++++++++++++++++++++---
pango/opentype/Makefile.am | 2 +-
2 files changed, 27 insertions(+), 4 deletions(-)
---
diff --git a/configure.in b/configure.in
index fb4a7ab..df6cc7b 100644
--- a/configure.in
+++ b/configure.in
@@ -111,8 +111,32 @@ AC_SUBST(LIB_EXE_MACHINE_FLAG)
AM_CONDITIONAL(OS_WIN32, test "$pango_os_win32" = "yes")
AC_PROG_CC
-AC_PROG_CXX
+
+dnl
+dnl Check for a working C++ compiler, but do not bail out, if none is found.
+dnl We use this for an automated test for C++ header correctness.
+dnl
+AC_CHECK_PROGS(CXX, [$CCC c++ g++ gcc CC cxx cc++ cl], gcc)
+AC_LANG_SAVE
+AC_LANG_CPLUSPLUS
+AC_TRY_COMPILE(,[class a { int b; } c;], ,CXX=)
AM_CONDITIONAL(HAVE_CXX, test "$CXX" != "")
+AC_LANG_RESTORE
+
+#
+# Checks for HarfBuzz
+#
+
+AC_PROG_CXX
+AC_CHECK_FUNCS(mprotect)
+
+# Make sure we don't link to libstdc++ (needs de-gcc-fication)
+CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions"
+
+
+#
+# Win32 stuff
+#
AC_LIBTOOL_WIN32_DLL
AM_DISABLE_STATIC
@@ -602,8 +626,7 @@ AM_CONDITIONAL(DYNAMIC_TIBETAN_FC, echo $dynamic_modules | egrep '(^|,)tibetan-f
# We use flockfile to implement pango_getline() - should be moved to GLib
# strtok_r isn't present on some systems
#
-# mprotect is for HarfBuzz
-AC_CHECK_FUNCS(flockfile strtok_r mprotect)
+AC_CHECK_FUNCS(flockfile strtok_r)
dnl **************************
dnl *** Checks for gtk-doc ***
diff --git a/pango/opentype/Makefile.am b/pango/opentype/Makefile.am
index 6c41d9e..b55ea1f 100644
--- a/pango/opentype/Makefile.am
+++ b/pango/opentype/Makefile.am
@@ -3,7 +3,7 @@
NULL =
# The following warning options are useful for debugging: -Wpadded -Wcast-align
-AM_CXXFLAGS = -fno-rtti -fno-exceptions
+#AM_CXXFLAGS =
noinst_LTLIBRARIES = libharfbuzz.la
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]