summaryrefslogtreecommitdiffstats
path: root/make/lib/archive/cpptasks/obsolete/cpptasks-1.0b5-gcclinker.patch
blob: 0eb4c760bf35809a94d13274821d70800950876a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Index: src/main/java/net/sf/antcontrib/cpptasks/gcc/GccLinker.java
===================================================================
--- src/main/java/net/sf/antcontrib/cpptasks/gcc/GccLinker.java	(revision 177)
+++ src/main/java/net/sf/antcontrib/cpptasks/gcc/GccLinker.java	(working copy)
@@ -78,6 +78,12 @@
      */
     public String decorateLinkerOption(StringBuffer buf, String arg) {
         String decoratedArg = arg;
+        if (arg.startsWith("--sysroot")) {
+          return arg;
+        }
+        if (arg.startsWith("-nostdlib")) {
+          return arg;
+        }
         if (arg.length() > 1 && arg.charAt(0) == '-') {
             switch (arg.charAt(1)) {
                 //