blob: cc82e16cc230757d1989239285bf74e88cdfc301 [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001Add LDFLAGS variable to Makefile so that extra linker flags can be sent via this variable.
2
3Upstream-Status: Inappropriate [no upstream]
4
5Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
6
7diff --git a/src/Makefile.real b/src/Makefile.real
8index 02179e4..9070974 100644
9--- a/src/Makefile.real
10+++ b/src/Makefile.real
11@@ -36,10 +36,10 @@ all: src
12 src: $(CLIENT_BIN) $(SERVER_BIN)
13
14 $(SERVER_BIN): $(SERVEROBJS) $(COMMONOBJS) $(MISSINGOBJS)
15- $(CC) -o $@ $(SERVEROBJS) $(COMMONOBJS) $(MISSINGOBJS) $(LIBS)
16+ $(CC) -o $@ $(SERVEROBJS) $(COMMONOBJS) $(MISSINGOBJS) $(LIBS) $(LDFLAGS)
17
18 $(CLIENT_BIN): $(CLIENTOBJS) $(COMMONOBJS) $(MISSINGOBJS)
19- $(CC) -o $@ $(CLIENTOBJS) $(COMMONOBJS) $(MISSINGOBJS) $(LIBS)
20+ $(CC) -o $@ $(CLIENTOBJS) $(COMMONOBJS) $(MISSINGOBJS) $(LIBS) $(LDFLAGS)
21
22 $(CLIENTOBJS) $(SERVEROBJS): $(HFILES) y.tab.h
23