* lib/ld-lib.exp (ar_simple_create): Pass -rc to ar.
+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
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 {