fix Windows build
[binutils-gdb.git] / gas / testsuite / config / default.exp
bloba6fafffb220938f2dc3f956173e98e23a8107ec7
1 # Copyright (C) 2012-2024 Free Software Foundation, Inc.
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 3 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
17 load_lib gas-defs.exp
19 if ![info exists AS] then {
20 set AS [findfile $base_dir/../as-new "../as-new" [transform as]]
23 if ![info exists ASFLAGS] then {
24 set ASFLAGS ""
27 if ![info exists LD] then {
28 set LD [findfile $base_dir/../../ld/ld-new $base_dir/../../ld/ld-new [transform ld]]
30 if ![info exists LDFLAGS] then {
31 set LDFLAGS ""
33 set ld_elf_shared_opt "-z norelro"
35 if ![info exists OBJDUMP] then {
36 set OBJDUMP [findfile $base_dir/../../binutils/objdump \
37 $base_dir/../../binutils/objdump \
38 [transform objdump]]
41 if ![info exists OBJDUMPFLAGS] then {
42 set OBJDUMPFLAGS {}
45 if ![info exists NM] then {
46 set NM [findfile $base_dir/../../binutils/nm-new \
47 $base_dir/../../binutils/nm-new \
48 [transform nm]]
51 if ![info exists NMFLAGS] then {
52 set NMFLAGS {}
55 if ![info exists SIZE] then {
56 set SIZE [findfile $base_dir/../../binutils/size]
59 if ![info exists SIZEFLAGS] then {
60 set SIZEFLAGS ""
63 if ![info exists OBJCOPY] then {
64 set OBJCOPY [findfile $base_dir/../../binutils/objcopy]
67 if ![info exists OBJCOPYFLAGS] then {
68 set OBJCOPYFLAGS {}
71 if ![info exists READELF] then {
72 set READELF [findfile $base_dir/../../binutils/readelf]
75 if ![info exists READELFFLAGS] then {
76 set READELFFLAGS {}
79 if ![info exists ADDR2LINE] then {
80 set ADDR2LINE [findfile $base_dir/../../binutils/addr2line]
83 if ![info exists ADDR2LINEFLAGS] then {
84 set ADDR2LINEFLAGS {}
87 if ![file isdirectory tmpdir] {catch "exec mkdir tmpdir" status}
89 gas_init