diff options
author | Yury Benesh <ybxsoft@tut.by> | 2013-07-06 10:40:32 +0300 |
---|---|---|
committer | Yury Benesh <ybxsoft@tut.by> | 2013-07-06 10:40:32 +0300 |
commit | e5ed6aec0e16ef833c7605f24529ce0d7962371c (patch) | |
tree | 5d9388941543c64ba56224cda7529b2ef09c532f /tools | |
parent | 3e4dec3cf45079664acc296b33e12bbc47c51618 (diff) | |
download | Nim-e5ed6aec0e16ef833c7605f24529ce0d7962371c.tar.gz |
Moved linker flags to the end of cmd line in build.sh and bat templates
Diffstat (limited to 'tools')
-rw-r--r-- | tools/niminst/buildbat.tmpl | 4 | ||||
-rw-r--r-- | tools/niminst/buildsh.tmpl | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/niminst/buildbat.tmpl b/tools/niminst/buildbat.tmpl index 11fa97a5a..a8dfd597f 100644 --- a/tools/niminst/buildbat.tmpl +++ b/tools/niminst/buildbat.tmpl @@ -17,8 +17,8 @@ ECHO %CC% %COMP_FLAGS% -Ibuild -c ?{f} -o ?{changeFileExt(f, "o")} # linkCmd.add(" " & changeFileExt(f, "o")) # end for -ECHO %LINKER% %LINK_FLAGS% -o ?{firstBinPath(c)\toLower(c.name)}.exe ?linkCmd -%LINKER% %LINK_FLAGS% -o ?{firstBinPath(c)\toLower(c.name)}.exe ?linkCmd +ECHO %LINKER% -o ?{firstBinPath(c)\toLower(c.name)}.exe ?linkCmd %LINK_FLAGS% +%LINKER% -o ?{firstBinPath(c)\toLower(c.name)}.exe ?linkCmd %LINK_FLAGS% # end block diff --git a/tools/niminst/buildsh.tmpl b/tools/niminst/buildsh.tmpl index b4b830d9d..da9c40f55 100644 --- a/tools/niminst/buildsh.tmpl +++ b/tools/niminst/buildsh.tmpl @@ -121,8 +121,8 @@ case $myos in $CC $COMP_FLAGS -Ibuild -c ?{f} -o ?{changeFileExt(f, "o")} # add(linkCmd, " \\\n" & changeFileExt(f, "o")) # end for - echo "$LINKER $LINK_FLAGS -o ?{firstBinPath(c)/toLower(c.name)} ?linkCmd" - $LINKER $LINK_FLAGS -o ?{firstBinPath(c)/toLower(c.name)} ?linkCmd + echo "$LINKER -o ?{firstBinPath(c)/toLower(c.name)} ?linkCmd $LINK_FLAGS" + $LINKER -o ?{firstBinPath(c)/toLower(c.name)} ?linkCmd $LINK_FLAGS ;; # end for *) |