diff --git a/ChangeLog b/ChangeLog index 952769c..affcaab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2015-11-11 Michael Forney + + * lib/target.exp (default_target_compile): Honor LDFLAGS_FOR_TARGET. + 2015-11-11 Ben Elliston * doc/dejagnu.texi: Regenerate. diff --git a/lib/target.exp b/lib/target.exp index 30e4585..6749caa 100644 --- a/lib/target.exp +++ b/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 {