[csw-devel] SF.net SVN: gar:[15503] csw/mgar/pkg/libgmp/trunk/Makefile

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sat Sep 3 17:14:35 CEST 2011


Revision: 15503
          http://gar.svn.sourceforge.net/gar/?rev=15503&view=rev
Author:   wahwah
Date:     2011-09-03 15:14:35 +0000 (Sat, 03 Sep 2011)
Log Message:
-----------
pkg/libgmp/trunk: using -fexceptions

Modified Paths:
--------------
    csw/mgar/pkg/libgmp/trunk/Makefile

Modified: csw/mgar/pkg/libgmp/trunk/Makefile
===================================================================
--- csw/mgar/pkg/libgmp/trunk/Makefile	2011-09-03 03:23:10 UTC (rev 15502)
+++ csw/mgar/pkg/libgmp/trunk/Makefile	2011-09-03 15:14:35 UTC (rev 15503)
@@ -99,21 +99,29 @@
 # http://gmplib.org/list-archives/gmp-discuss/2009-January/003518.html
 # EXTRA_CXXFLAGS = -D__GMP_NO_ATTRIBUTE_CONST_PURE
 
+# GMP needs to be able to propagate exceptions to PPL
+EXTRA_CXXFLAGS = -fexceptions
+
 # We cannot compile libgmp with Solaris Studio, because we need to build the
 # C++ bindings, which will be used by gcc later on.
 GARCOMPILER = GNU
 
+# It's necessary to propagate exceptions from GMP to PPL
+EXTRA_CPPFLAGS = -fexceptions
+
 include gar/category.mk
 
 # Undefined symbol __sync_fetch_and_add_4
 # http://www.mail-archive.com/maintainers@lists.opencsw.org/msg06095.html
 # http://opencsw.wikidot.com/porting-faq#toc6
 ifeq ($(ISA),sparcv8)
-OPT_FLAGS_GCC = -O0
+OPT_FLAGS_GCC =
 endif
 ifeq ($(ISA),i386)
-OPT_FLAGS_GCC = -O0
+OPT_FLAGS_GCC =
 endif
+ARCHFLAGS_GCC4_sparcv8 += -O0
+ARCHFLAGS_GCC4_i386 += -O0
 
 post-merge:
 	ginstall $(FILEDIR)/gmp.h $(PKGROOT)$(includedir)/gmp.h

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list