From: Michael Forney <[email protected]>
Signed-off-by: Michael Forney <[email protected]>
Signed-off-by: Filipe Brandenburger <[email protected]>
---
lib/target.exp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/target.exp b/lib/target.exp
index 30e45852e076..6749caa363ac 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 {
--
2.6.0.rc2.230.g3dd15c0
_______________________________________________
DejaGnu mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/dejagnu