summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/net/sf/antcontrib/cpptasks/gcc/GccLinker.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/net/sf/antcontrib/cpptasks/gcc/GccLinker.java b/src/main/java/net/sf/antcontrib/cpptasks/gcc/GccLinker.java
index 053f370..c1e9786 100644
--- a/src/main/java/net/sf/antcontrib/cpptasks/gcc/GccLinker.java
+++ b/src/main/java/net/sf/antcontrib/cpptasks/gcc/GccLinker.java
@@ -81,6 +81,12 @@ public class GccLinker extends AbstractLdLinker {
*/
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)) {
//