From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Taahir Ahmed Newsgroups: gmane.lisp.guile.devel Subject: [PATCH 1/3] Support C++ source files, use -fexceptions. Date: Tue, 14 Jul 2015 13:07:27 -0500 Message-ID: <1436897249-18167-2-git-send-email-ahmed.taahir@gmail.com> References: <1436897249-18167-1-git-send-email-ahmed.taahir@gmail.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1436897310 18150 80.91.229.3 (14 Jul 2015 18:08:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Jul 2015 18:08:30 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Jul 14 20:08:20 2015 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZF4cs-0000D1-Ha for guile-devel@m.gmane.org; Tue, 14 Jul 2015 20:08:18 +0200 Original-Received: from localhost ([::1]:60740 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZF4cr-0000V2-B8 for guile-devel@m.gmane.org; Tue, 14 Jul 2015 14:08:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZF4cm-0000Uo-7F for guile-devel@gnu.org; Tue, 14 Jul 2015 14:08:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZF4ch-00051M-NJ for guile-devel@gnu.org; Tue, 14 Jul 2015 14:08:12 -0400 Original-Received: from mail-oi0-x236.google.com ([2607:f8b0:4003:c06::236]:36417) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZF4ch-0004yt-Ja for guile-devel@gnu.org; Tue, 14 Jul 2015 14:08:07 -0400 Original-Received: by oibn4 with SMTP id n4so12073116oib.3 for ; Tue, 14 Jul 2015 11:08:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=6KXw+V1b9vqW1QJmNmzg4I10RunSpjTQKPMNE80owtM=; b=pe6igo6kGlj2t7wqOqA/4mX2q0c9H1/9F0Cgsxl05Vj0ek/E2w4VPIU6zqElru8JXJ wXoe2ZeDjZjV1jGUai94ync6mp9B4m139aYigbGCMaG8K5xpfYttbqTqAWKJla1KCHpy oL3EaK/g4CQF9w/uY3eAw9lNANGpeM1Syqhi50n4nTRQQMxDlupIGghW8r2vq9yoTTXx nKXmYovznzEZDQDAXCKTASIjadbKuVnU3/gbNdyXn5/M1Y+bSS9KnkWhUMB8Qfvd0GBD dC/IUo4Ar4tCexdFb/0raUiSeXWHwLCtcDMESsGGSyNA48Nd60ZA026T1klpf8z4b7Mo YBrg== X-Received: by 10.60.173.233 with SMTP id bn9mr37949558oec.20.1436897286108; Tue, 14 Jul 2015 11:08:06 -0700 (PDT) Original-Received: from localhost.localdomain (nat-165-91-12-35.tamulink.tamu.edu. [165.91.12.35]) by smtp.gmail.com with ESMTPSA id p184sm890501oig.10.2015.07.14.11.08.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Jul 2015 11:08:05 -0700 (PDT) X-Mailer: git-send-email 2.3.6 In-Reply-To: <1436897249-18167-1-git-send-email-ahmed.taahir@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c06::236 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:17762 Archived-At: -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