blob: 5eec91d7228a77841e56a63781bf40ad207643e4 [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001From 1beb0dad6f8b99eb3bf1b9982e0b49e81ff77bbc Mon Sep 17 00:00:00 2001
2From: Jackie Huang <jackie.huang@windriver.com>
3Date: Wed, 23 Nov 2016 19:17:31 +0800
4Subject: [PATCH] Makefile: Add LDFLAGS variable
5
6Add LDFLAGS variable to make sure the extra linkder
7flags can be passed.
8
9Upstream-Status: Pending
10
11Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
12---
13 Makefile | 6 +++---
14 1 file changed, 3 insertions(+), 3 deletions(-)
15
16diff --git a/Makefile b/Makefile
17index e20918f..25d92d3 100644
18--- a/Makefile
19+++ b/Makefile
20@@ -51,7 +51,7 @@ $(CROSS_COMPILE)agent-proxy: $(OBJS)
21 $(CC) -DAGENT_VER=$(AGENTVER) $(LINKFLAGS) $(CFLAGS) -o $(extpath)$@ $(OBJS) wsock32.lib
22 else
23 $(CROSS_COMPILE)agent-proxy: $(OBJS)
24- $(CC) -DAGENT_VER=$(AGENTVER) $(CFLAGS) -o $(extpath)$@ $(OBJS) $(LDLIBS)
25+ $(CC) -DAGENT_VER=$(AGENTVER) $(CFLAGS) $(LDFLAGS) -o $(extpath)$@ $(OBJS) $(LDLIBS)
26 endif
27
28
29@@ -61,9 +61,9 @@ clean:
30 rm -f $(extpath)$(CROSS_COMPILE)agent-proxy $(extpath)agent-proxy $(extpath)*.o $(extpath)*.obj $(extpath)*.exp $(extpath)*.exe $(extpath)*.ilk $(extpath)*.pdb *~
31
32 $(extpath)$(CROSS_COMPILE)%.o::%.c
33- $(CC) -DAGENT_VER=$(AGENTVER) $(CFLAGS) -c $< -o $@
34+ $(CC) -DAGENT_VER=$(AGENTVER) $(CFLAGS) $(LDFLAGS) -c $< -o $@
35
36 $(extpath)%.obj:%.c
37- $(CC) -DAGENT_VER=$(AGENTVER) $(CFLAGS) -c -Fo$@ $(TLSPATH_INC) $<
38+ $(CC) -DAGENT_VER=$(AGENTVER) $(CFLAGS) $(LDFLAGS) -c -Fo$@ $(TLSPATH_INC) $<
39
40
41--
422.8.3
43