aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Elliston <bje@gnu.org>2006-06-22 15:47:53 +0000
committerBen Elliston <bje@gnu.org>2006-06-22 15:47:53 +0000
commitdb93e372db4777647c7d9c7d03569ab2224f74ed (patch)
treecff21019dba72a95d0b9810168e62f262d7362a8 /lib
parentf9e7eec6fcfe1046c97a485913105aefc6bf71a0 (diff)
downloaddejagnu-db93e372db4777647c7d9c7d03569ab2224f74ed.zip
dejagnu-db93e372db4777647c7d9c7d03569ab2224f74ed.tar.gz
dejagnu-db93e372db4777647c7d9c7d03569ab2224f74ed.tar.bz2
2006-06-23 Eric Botcazou <ebotcazou@adacore.com>
* libgloss.exp (find_gnatmake): Rewrite.
Diffstat (limited to 'lib')
-rw-r--r--lib/libgloss.exp26
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/libgloss.exp b/lib/libgloss.exp
index 5722636..e904b8c 100644
--- a/lib/libgloss.exp
+++ b/lib/libgloss.exp
@@ -705,21 +705,21 @@ proc find_g77 {} {
proc find_gnatmake {} {
global tool_root_dir
- set root "$tool_root_dir/gcc"
- set GM ""
-
if {![is_remote host]} {
- set file [lookfor_file $root gnatmake]
- if { $file != "" } {
- set GM "$file -I$root/ada/rts --GCC=$root/xgcc --GNATBIND=$root/gnatbind --GNATLINK=$root/gnatlink -cargs -B$root -largs --GCC=$root/xgcc -margs";
- }
- }
-
- if {$GM == ""} {
- set GM [transform gnatmake]
+ set file [lookfor_file $tool_root_dir gnatmake]
+ if { $file == "" } {
+ set file [lookfor_file $tool_root_dir gcc/gnatmake]
+ }
+ if { $file != "" } {
+ set root [file dirname $file]
+ set CC "$file -I$root/ada/rts --GCC=$root/xgcc --GNATBIND=$root/gnatbind --GNATLINK=$root/gnatlink -cargs -B$root -largs --GCC=$root/xgcc -B$root -margs"
+ } else {
+ set CC [transform gnatmake]
+ }
+ } else {
+ set CC [transform gnatmake]
}
-
- return $GM
+ return $CC
}
proc find_nm {} {