From 6e69fb4e8cb97445badcd1f12e5ba09560eda5a9 Mon Sep 17 00:00:00 2001 From: Mark Donszelmann Date: Tue, 19 Jun 2007 23:31:06 +0000 Subject: Fixes to cpptasks --- src/net/sf/antcontrib/cpptasks/gcc/GppLinker.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/net') diff --git a/src/net/sf/antcontrib/cpptasks/gcc/GppLinker.java b/src/net/sf/antcontrib/cpptasks/gcc/GppLinker.java index ed18581..7b9af5f 100644 --- a/src/net/sf/antcontrib/cpptasks/gcc/GppLinker.java +++ b/src/net/sf/antcontrib/cpptasks/gcc/GppLinker.java @@ -90,8 +90,15 @@ public class GppLinker extends AbstractLdLinker { gccLibrary = "-static-libgcc"; } else { runtimeLibrary = "-lstdc++"; - gccLibrary = "-shared-libgcc"; +// FIXME, needed to add exceptions here for MacOS X. + gccLibrary = "-fexceptions"; } + } else { + if (linkType.isStaticRuntime()) { + gccLibrary = "-static-libgcc"; + } else { + gccLibrary = "-shared-libgcc"; + } } // FREEHEP: set flag linkType.callAddLibrarySets = true; -- cgit v1.2.3