aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2009-04-19 12:46:12 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2009-04-19 12:46:12 +0000
commit743e3e4c8c6387b763c6a20e2e577a8df5308b76 (patch)
tree2e5e5544fa63906ed791d92d2a79dc6d51995dea
parentca409efd9282623758e9b8f36df75cdd7278a3e1 (diff)
downloadgcc-743e3e4c8c6387b763c6a20e2e577a8df5308b76.zip
gcc-743e3e4c8c6387b763c6a20e2e577a8df5308b76.tar.gz
gcc-743e3e4c8c6387b763c6a20e2e577a8df5308b76.tar.bz2
gnat.exp (local_find_gnatmake): Pass --LINK to gnatlink.
* lib/gnat.exp (local_find_gnatmake): Pass --LINK to gnatlink. Do not pass -B$root after -margs. From-SVN: r146345
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/lib/gnat.exp4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 361d93d..5454921 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
+
+ * lib/gnat.exp (local_find_gnatmake): Pass --LINK to gnatlink.
+ Do not pass -B$root after -margs.
+
2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/32061
diff --git a/gcc/testsuite/lib/gnat.exp b/gcc/testsuite/lib/gnat.exp
index c14899f..35e18da 100644
--- a/gcc/testsuite/lib/gnat.exp
+++ b/gcc/testsuite/lib/gnat.exp
@@ -255,7 +255,7 @@ proc prune_gnat_output { text } {
proc local_find_gnatmake {} {
global tool_root_dir
-
+
if ![is_remote host] {
set file [lookfor_file $tool_root_dir gnatmake]
if { $file == "" } {
@@ -263,7 +263,7 @@ proc local_find_gnatmake {} {
}
if { $file != "" } {
set root [file dirname $file]
- set CC "$file --GCC=$root/xgcc --GNATBIND=$root/gnatbind --GNATLINK=$root/gnatlink -cargs -B$root -largs -B$root -margs -B$root";
+ set CC "$file --GCC=$root/xgcc --GNATBIND=$root/gnatbind --GNATLINK=$root/gnatlink -cargs -B$root -largs --LINK=$root/xgcc -B$root -margs";
} else {
set CC [transform gnatmake]
}