diff options
author | Sven Gothel <[email protected]> | 2013-09-12 00:09:39 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-09-12 00:09:39 +0200 |
commit | a5c3fdc48b9bc5113b8445127c330c2c055423a7 (patch) | |
tree | ce9e48f6a8d971ede0d1208027a79a498fbb18a7 /src | |
parent | bd772e618b30d7e3ee71b2bb12a4d85139cfe15a (diff) |
Make crosscompilation work (--sysroot .. etc)
This patch was private to JogAmp's gluegen project, now exposed.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/net/sf/antcontrib/cpptasks/gcc/GccLinker.java | 6 |
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)) { // |