]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/meta-ti-glsdk.git/blob - recipes-ti/devtools/ti-xdctools/fix-hardcoded-paths.diff
xdctools: fix toolchain hardcoded paths
[glsdk/meta-ti-glsdk.git] / recipes-ti / devtools / ti-xdctools / fix-hardcoded-paths.diff
1 diff -ur a/packages/gnu/targets/ITarget.xs b/packages/gnu/targets/ITarget.xs
2 --- a/packages/gnu/targets/ITarget.xs   2011-08-06 13:24:44.000000000 +0200
3 +++ b/packages/gnu/targets/ITarget.xs   2011-08-06 13:23:37.000000000 +0200
4 @@ -251,7 +251,7 @@
5  
6      function askLd(target)
7      {
8 -        var ldCmd = target.rootDir + "/" + target.GCCTARG + "/bin/ld";
9 +        var ldCmd = target.rootDir + "/" + target.GCCTARG + "-ld";
10          /* If the ld executable cannot be found, and the prefix is not used,
11           * it's probably a misspelled directory path.
12           */
13 @@ -486,7 +486,7 @@
14      tool2cmd["link"] = cmd;
15  
16      /* define the ar command template */
17 -    cmd  = prefix + target.ar.cmd
18 +    cmd  = prefix + target.GCCTARG + "-ar"
19          + " $(AROPTS_P) " + target.ar.opts
20          + " $@ $(AROPTS_S) $(aropts) $(files)";
21      tool2cmd["ar"] = cmd;