Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | From 1beb0dad6f8b99eb3bf1b9982e0b49e81ff77bbc Mon Sep 17 00:00:00 2001 |
| 2 | From: Jackie Huang <jackie.huang@windriver.com> |
| 3 | Date: Wed, 23 Nov 2016 19:17:31 +0800 |
| 4 | Subject: [PATCH] Makefile: Add LDFLAGS variable |
| 5 | |
| 6 | Add LDFLAGS variable to make sure the extra linkder |
| 7 | flags can be passed. |
| 8 | |
| 9 | Upstream-Status: Pending |
| 10 | |
| 11 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> |
| 12 | --- |
| 13 | Makefile | 6 +++--- |
| 14 | 1 file changed, 3 insertions(+), 3 deletions(-) |
| 15 | |
| 16 | diff --git a/Makefile b/Makefile |
| 17 | index 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 | -- |
| 42 | 2.8.3 |
| 43 | |