diff options
author | Jiong Wang <jiong.wang@arm.com> | 2014-11-11 16:41:37 +0000 |
---|---|---|
committer | Jiong Wang <jiong.wang@arm.com> | 2014-11-11 16:41:37 +0000 |
commit | 603c43995f4ee594b48ab52f1ea8d254b3a46f55 (patch) | |
tree | df955b6d07e967e4345d33b6b685b12efa31c14e /ld/testsuite/lib | |
parent | 541a3cbda9de8ae8888906cfe14887c394a3f772 (diff) | |
download | gdb-603c43995f4ee594b48ab52f1ea8d254b3a46f55.zip gdb-603c43995f4ee594b48ab52f1ea8d254b3a46f55.tar.gz gdb-603c43995f4ee594b48ab52f1ea8d254b3a46f55.tar.bz2 |
[PATCH] treate -specs as both cflags & ldflags
ld/testsuite/
* lib/ld-lib.exp (run_ld_link_exec_tests): Append board_cflags if gcc driver
used as link tool.
(run_cc_link_exec_tests): Likewise.
Diffstat (limited to 'ld/testsuite/lib')
-rw-r--r-- | ld/testsuite/lib/ld-lib.exp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp index 7d2df22..09213bc 100644 --- a/ld/testsuite/lib/ld-lib.exp +++ b/ld/testsuite/lib/ld-lib.exp @@ -1410,6 +1410,13 @@ proc run_cc_link_tests { ldtests } { global CXXFLAGS global ar global exec_output + global board_cflags + + if [board_info [target_info name] exists cflags] { + set board_cflags " [board_info [target_info name] cflags]" + } else { + set board_cflags "" + } foreach testitem $ldtests { set testname [lindex $testitem 0] @@ -1466,7 +1473,7 @@ proc run_cc_link_tests { ldtests } { set failed 1 } } else { - if { ![ld_simple_link $cc_cmd $binfile "-L$srcdir/$subdir $ldflags $objfiles"] } { + if { ![ld_simple_link $cc_cmd $binfile "$board_cflags -L$srcdir/$subdir $ldflags $objfiles"] } { set failed 1 } |