summaryrefslogtreecommitdiff
path: root/src/net/sf/antcontrib/cpptasks
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/sf/antcontrib/cpptasks')
-rw-r--r--src/net/sf/antcontrib/cpptasks/gcc/AbstractLdLinker.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/sf/antcontrib/cpptasks/gcc/AbstractLdLinker.java b/src/net/sf/antcontrib/cpptasks/gcc/AbstractLdLinker.java
index 617081c..8838242 100644
--- a/src/net/sf/antcontrib/cpptasks/gcc/AbstractLdLinker.java
+++ b/src/net/sf/antcontrib/cpptasks/gcc/AbstractLdLinker.java
@@ -162,8 +162,7 @@ public abstract class AbstractLdLinker extends CommandLineLinker {
}
// BEGINFREEHEP if last was -Bstatic reset it to -Bdynamic so that libc and libm can be found as shareables
-System.err.println(previousLibraryType+" "+isDarwin());
- if ("static".equals(previousLibraryType) && !isDarwin()) {
+ if ((previousLibraryType != null) && previousLibraryType.getValue().equals("static") && !isDarwin()) {
endargs.addElement("-Bdynamic");
}
// ENDFREEHEP