Move -rc before $aropts
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 29 Jan 2015 19:11:03 +0000 (11:11 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 29 Jan 2015 19:11:03 +0000 (11:11 -0800)
* lib/ld-lib.exp (ar_simple_create): Move -rc before $aropts.

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

index d05b762..7bc1ea6 100644 (file)
@@ -1,3 +1,7 @@
+2015-01-29  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * lib/ld-lib.exp (ar_simple_create): Move -rc before $aropts.
+
 2015-01-29  Alan Modra  <amodra@gmail.com>
 
        * ld-powerpc/tlsld.d, * ld-powerpc/tlsld.s: New test.
index 0a25f86..6671719 100644 (file)
@@ -1058,7 +1058,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" "-rc $aropts $target $objects"]
     set exec_output [prune_warnings $exec_output]
 
     if [string match "" $exec_output] then {