Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | Add LDFLAGS variable to Makefile so that extra linker flags can be sent via this variable. |
| 2 | |
| 3 | Upstream-Status: Inappropriate [no upstream] |
| 4 | |
| 5 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> |
| 6 | |
| 7 | diff --git a/src/Makefile.real b/src/Makefile.real |
| 8 | index 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 | |