Pass -rc to ar

* lib/ld-lib.exp (ar_simple_create): Pass -rc to ar.
This commit is contained in:
H.J. Lu
2012-12-07 17:51:35 +00:00
parent 133c2bb257
commit d52a4dca58
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2012-12-07 H.J. Lu <hongjiu.lu@intel.com>
* lib/ld-lib.exp (ar_simple_create): Pass -rc to ar.
2012-12-07 H.J. Lu <hongjiu.lu@intel.com>
PR ld/14926

View File

@ -981,7 +981,7 @@ proc set_file_contents { filename contents } {
proc ar_simple_create { ar aropts target objects } {
remote_file host delete $target
set exec_output [run_host_cmd "$ar" "$aropts rc $target $objects"]
set exec_output [run_host_cmd "$ar" "$aropts -rc $target $objects"]
set exec_output [prune_warnings $exec_output]
if [string match "" $exec_output] then {