* config/default.exp (WINDRES): Add.
[deliverable/binutils-gdb.git] / binutils / testsuite / config / default.exp
CommitLineData
8c2bc687
NC
1# Copyright 1993, 1994, 1995, 1997, 1999, 2001
2# Free Software Foundation, Inc.
252b5132
RH
3
4# This program is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; either version 2 of the License, or
7# (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with this program; if not, write to the Free Software
16# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
18# Please email any bugs, comments, and/or additions to this file to:
19# bug-dejagnu@prep.ai.mit.edu
20
21# This file was written by Rob Savoye. (rob@cygnus.com)
22
23load_lib util-defs.exp
24load_lib utils-lib.exp
25
26if ![info exists NM] then {
27 set NM [findfile $base_dir/nm-new $base_dir/nm-new [transform nm]]
28}
29if ![info exists NMFLAGS] then {
30 set NMFLAGS ""
31}
32
33if ![info exists SIZE] then {
34 set SIZE [findfile $base_dir/size]
35}
36if ![info exists SIZEFLAGS] then {
37 set SIZEFLAGS ""
38}
39
40if ![info exists OBJDUMP] then {
41 set OBJDUMP [findfile $base_dir/objdump]
42}
43if ![info exists OBJDUMPFLAGS] then {
44 set OBJDUMPFLAGS ""
45}
46
47if ![info exists OBJCOPY] then {
48 set OBJCOPY [findfile $base_dir/objcopy]
49}
50if ![info exists OBJCOPYFLAGS] then {
51 set OBJCOPYFLAGS ""
52}
53
54if ![info exists AR] then {
55 set AR [findfile $base_dir/ar]
56}
57
58if ![info exists STRIP] then {
59 set STRIP [findfile $base_dir/strip-new $base_dir/strip-new [transform strip]]
60}
61if ![info exists STRIPFLAGS] then {
62 set STRIPFLAGS ""
63}
64
65if ![info exists READELF] then {
66 set READELF [findfile $base_dir/readelf]
67}
68if ![info exists READELFFLAGS] then {
69 set READELFFLAGS ""
70}
71
64e08727
DD
72if ![info exists WINDRES] then {
73 set WINDRES [findfile $base_dir/windres]
74}
75
252b5132
RH
76if ![file isdirectory tmpdir] {catch "exec mkdir tmpdir" status}
77
9a580d9a
L
78# Make a symlink from tmpdir/gas/as and tmpdir/gas/ld to the assembler
79# and linker in the build tree, so that we can use a -B option to gcc
80# to force it to use the newly built assembler/linker.
81if {![file isdirectory tmpdir/gas]} then {
82 catch "exec mkdir tmpdir/gas" status
83 if {[file isfile ../gas/as-new]} then {
84 catch "exec ln -s ../../../gas/as-new tmpdir/gas/as" status
85 }
86 if {[file isfile ../ld/ld-new]} then {
87 catch "exec ln -s ../../../ld/ld-new tmpdir/gas/ld" status
88 }
89}
90set gcc_gas_flag "-B[pwd]/tmpdir/gas/"
91
252b5132
RH
92#
93# binutils_run
94# run a program, returning the output
95# sets binutils_run_failed if the program does not exist
96#
97proc binutils_run { prog progargs } {
98 default_binutils_run $prog $progargs
99}
100
101#
102# binutils_assemble
103# assemble a file
104#
105proc binutils_assemble { source object } {
106 default_binutils_assemble $source $object
107}
This page took 0.093519 seconds and 4 git commands to generate.