Browse Source

* lib/target.exp (default_target_compile): Honor LDFLAGS_FOR_TARGET.

Signed-off-by: Ben Elliston <bje@gnu.org>
dejagnu-1.6
Michael Forney 11 years ago
committed by Ben Elliston
parent
commit
5eea9a54c9
  1. 4
      ChangeLog
  2. 5
      lib/target.exp

4
ChangeLog

@ -1,3 +1,7 @@
2015-11-11 Michael Forney <forney@google.com>
* lib/target.exp (default_target_compile): Honor LDFLAGS_FOR_TARGET.
2015-11-11 Ben Elliston <bje@gnu.org>
* doc/dejagnu.texi: Regenerate.

5
lib/target.exp

@ -307,6 +307,7 @@ proc default_target_compile {source destfile type options} {
global target_triplet
global tool_root_dir
global CFLAGS_FOR_TARGET
global LDFLAGS_FOR_TARGET
global compiler_flags
if { $destfile == "" && $type != "preprocess" && $type != "none" } {
@ -324,6 +325,10 @@ proc default_target_compile {source destfile type options} {
append add_flags " $CFLAGS_FOR_TARGET"
}
if {[info exists LDFLAGS_FOR_TARGET]} {
append ldflags " $LDFLAGS_FOR_TARGET"
}
if {[info exists target_info(host,name)]} {
set host [host_info name]
} else {

Loading…
Cancel
Save