[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/2] * lib/target.exp: honor LDFLAGS_FOR_TARGET in a target compi
From: |
Filipe Brandenburger |
Subject: |
[PATCH 2/2] * lib/target.exp: honor LDFLAGS_FOR_TARGET in a target compile. |
Date: |
Tue, 10 Nov 2015 17:35:41 -0800 |
From: Michael Forney <address@hidden>
Signed-off-by: Michael Forney <address@hidden>
Signed-off-by: Filipe Brandenburger <address@hidden>
---
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
[PATCH 2/2] * lib/target.exp: honor LDFLAGS_FOR_TARGET in a target compile.,
Filipe Brandenburger <=
Re: [PATCH 0/2] Test timeout and honoring LDFLAGS, Ben Elliston, 2015/11/10