[PATCH 2/2] * lib/target.exp: honor LDFLAGS_FOR_TARGET in a target compile.

Filipe Brandenburger <[email protected]>
Newsgroups gmane.comp.sysutils.dejagnu.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.