diff options
Diffstat (limited to 'libctf/testsuite/config/default.exp')
-rw-r--r-- | libctf/testsuite/config/default.exp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libctf/testsuite/config/default.exp b/libctf/testsuite/config/default.exp index 32e882d..f2aba56 100644 --- a/libctf/testsuite/config/default.exp +++ b/libctf/testsuite/config/default.exp @@ -43,18 +43,18 @@ if {![file isdirectory tmpdir/libctf]} then { set gcc_B_opt "-B[pwd]/tmpdir/libctf/" set ld_L_opt "" -# The "make check" target in the Makefile passes in -# "CC=$(CC_FOR_TARGET)". But, if the user invokes runtest directly, -# these flags may not be set. if {![info exists CC]} { - set CC [find_gcc] -} -if {![info exists CC_FOR_HOST]} { - set CC_FOR_HOST $CC + set CC gcc } if {![info exists CFLAGS]} { set CFLAGS "-g -O2" } +if {![info exists CC_FOR_TARGET]} { + set CC_FOR_TARGET [find_gcc] +} +if {![info exists CFLAGS_FOR_TARGET]} { + set CFLAGS_FOR_TARGET $CFLAGS +} # load the utility procedures load_lib ctf-lib.exp |