mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
[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.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2014-11-11 Jiong Wang <jiong.wang@arm.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2014-11-07 H.J. Lu <hongjiu.lu@intel.com>
|
2014-11-07 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
PR ld/17482
|
PR ld/17482
|
||||||
|
@ -1410,6 +1410,13 @@ proc run_cc_link_tests { ldtests } {
|
|||||||
global CXXFLAGS
|
global CXXFLAGS
|
||||||
global ar
|
global ar
|
||||||
global exec_output
|
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 {
|
foreach testitem $ldtests {
|
||||||
set testname [lindex $testitem 0]
|
set testname [lindex $testitem 0]
|
||||||
@ -1466,7 +1473,7 @@ proc run_cc_link_tests { ldtests } {
|
|||||||
set failed 1
|
set failed 1
|
||||||
}
|
}
|
||||||
} else {
|
} 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
|
set failed 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user