Pass -rc to ar
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 7 Dec 2012 17:51:35 +0000 (17:51 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 7 Dec 2012 17:51:35 +0000 (17:51 +0000)
* lib/ld-lib.exp (ar_simple_create): Pass -rc to ar.

ld/testsuite/ChangeLog
ld/testsuite/lib/ld-lib.exp

index c06f8ab..c5126c0 100644 (file)
@@ -1,5 +1,9 @@
 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
        * ld-elf/pr14926.d: New file.
        * ld-elf/pr14926.s: Likewise.
index 3cb8ee1..4ddb659 100644 (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 {