From: Taahir Ahmed <ahmed.taahir@gmail.com>
To: guile-devel@gnu.org
Subject: [PATCH 1/3] Support C++ source files, use -fexceptions.
Date: Tue, 14 Jul 2015 13:07:27 -0500 [thread overview]
Message-ID: <1436897249-18167-2-git-send-email-ahmed.taahir@gmail.com> (raw)
In-Reply-To: <1436897249-18167-1-git-send-email-ahmed.taahir@gmail.com>
-fexceptions allows C++ exceptions to pass through C stack frames.
---
configure.ac | 1 +
libguile/Makefile.am | 5 ++++-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 19e00d8..78cbffc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -66,6 +66,7 @@ AC_LIBTOOL_WIN32_DLL
AC_PROG_INSTALL
AC_PROG_CC
+AC_PROG_CXX
gl_EARLY
AC_PROG_CPP
AC_PROG_SED
diff --git a/libguile/Makefile.am b/libguile/Makefile.am
index 8302a18..cc88215 100644
--- a/libguile/Makefile.am
+++ b/libguile/Makefile.am
@@ -38,7 +38,8 @@ DEFAULT_INCLUDES =
AM_CPPFLAGS = -DBUILDING_LIBGUILE=1 -I$(top_srcdir) -I$(top_builddir) \
-I$(top_srcdir)/lib -I$(top_builddir)/lib $(LIBFFI_CFLAGS)
-AM_CFLAGS = $(GCC_CFLAGS) $(CFLAG_VISIBILITY)
+AM_CFLAGS = -fexceptions $(GCC_CFLAGS) $(CFLAG_VISIBILITY)
+AM_CXXFLAGS = $(GCC_CFLAGS) $(CFLAG_VISIBILITY)
## The Gnulib Libtool archive.
gnulib_library = $(top_builddir)/lib/libgnu.la
@@ -113,10 +114,12 @@ guile_filter_doc_snarfage$(EXEEXT): $(guile_filter_doc_snarfage_OBJECTS) $(guile
guile_SOURCES = guile.c
guile_CFLAGS = $(GUILE_CFLAGS) $(AM_CFLAGS)
+guile_CXXFLAGS = $(GUILE_CXXFLAGS) $(AM_CXXFLAGS)
guile_LDADD = libguile-@GUILE_EFFECTIVE_VERSION@.la
guile_LDFLAGS = $(GUILE_CFLAGS)
libguile_@GUILE_EFFECTIVE_VERSION@_la_CFLAGS = $(GUILE_CFLAGS) $(AM_CFLAGS)
+libguile_@GUILE_EFFECTIVE_VERSION@_la_CXXFLAGS = $(GUILE_CXXFLAGS) $(AM_CXXFLAGS)
libguile_@GUILE_EFFECTIVE_VERSION@_la_SOURCES = \
alist.c \
--
2.3.6
next prev parent reply other threads:[~2015-07-14 18:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-14 18:07 Prototype for C++-compatible Guile Exceptions Taahir Ahmed
2015-07-14 18:07 ` Taahir Ahmed [this message]
2015-07-14 18:07 ` [PATCH 2/3] Add C++ extern "C" guards to internal headers Taahir Ahmed
2015-07-14 19:36 ` Andreas Rottmann
2015-07-16 0:22 ` Taahir Ahmed
2015-07-16 18:55 ` Andreas Rottmann
2015-07-15 3:40 ` [PATCH 3/3] Implement Guile exceptions with C++ exceptions Taahir Ahmed
2015-08-10 3:26 ` Prototype for C++-compatible Guile Exceptions Taahir Ahmed
2015-09-04 8:06 ` Mark H Weaver
2015-09-06 23:01 ` Taahir Ahmed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1436897249-18167-2-git-send-email-ahmed.taahir@gmail.com \
--to=ahmed.taahir@gmail.com \
--cc=guile-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).