From 1bef1be93c4cb34dfb713018d92a712ca4f23b5c Mon Sep 17 00:00:00 2001 From: Mark Donszelmann Date: Fri, 8 Sep 2006 18:01:55 +0000 Subject: Fix for MacOSX --- src/net/sf/antcontrib/cpptasks/gcc/AbstractLdLinker.java | 5 +++-- src/net/sf/antcontrib/cpptasks/gcc/GccLinker.java | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/net/sf/antcontrib/cpptasks/gcc/AbstractLdLinker.java b/src/net/sf/antcontrib/cpptasks/gcc/AbstractLdLinker.java index a32e28a..638e06d 100644 --- a/src/net/sf/antcontrib/cpptasks/gcc/AbstractLdLinker.java +++ b/src/net/sf/antcontrib/cpptasks/gcc/AbstractLdLinker.java @@ -125,8 +125,9 @@ public abstract class AbstractLdLinker extends CommandLineLinker { previousLibraryType = set.getType(); } } else { - if (set.getType() == null || - !"framework".equals(set.getType().getValue()) || + // FREEHEP FIXME, recheck this, works on MacOSX + if (set.getType() == null && + !"framework".equals(set.getType().getValue()) && !isDarwin()) { endargs.addElement("-Bdynamic"); previousLibraryType = set.getType(); diff --git a/src/net/sf/antcontrib/cpptasks/gcc/GccLinker.java b/src/net/sf/antcontrib/cpptasks/gcc/GccLinker.java index be85124..4c82743 100644 --- a/src/net/sf/antcontrib/cpptasks/gcc/GccLinker.java +++ b/src/net/sf/antcontrib/cpptasks/gcc/GccLinker.java @@ -33,7 +33,7 @@ public class GccLinker extends AbstractLdLinker { private static final String[] libtoolObjFiles = new String[]{".fo", ".a", ".lib", ".dll", ".so", ".sl"}; private static String[] linkerOptions = new String[]{"-bundle", - "-dynamiclib", "-nostartfiles", "-nostdlib", "-prebind", "-s", + "-dynamic", "-dynamiclib", "-nostartfiles", "-nostdlib", "-prebind", "-s", "-static", "-shared", "-symbolic", "-Xlinker", "--export-all-symbols", "-static-libgcc",}; private static final GccLinker dllLinker = new GccLinker("gcc", objFiles, -- cgit v1.2.3