Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame^] | 1 | Add LDFLAGS variable to Makefile, make sure the extra linker flags can be passed. |
| 2 | |
| 3 | Upstream-Status: Pending |
| 4 | |
| 5 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> |
| 6 | |
| 7 | diff --git a/Makefile b/Makefile |
| 8 | index a0aa7f6..d6ce2c7 100644 |
| 9 | --- a/Makefile |
| 10 | +++ b/Makefile |
| 11 | @@ -14,7 +14,7 @@ MAN_DIR ?= /usr/share/man/man$(MANS) |
| 12 | all : $(BIN) $(MAN) |
| 13 | |
| 14 | $(BIN) : $(BIN).c |
| 15 | - $(CC) $(CFLAGS) -o $(BIN) $(BIN).c |
| 16 | + $(CC) $(CFLAGS) ${LDFLAGS} -o $(BIN) $(BIN).c |
| 17 | |
| 18 | $(MAN) : $(PACKAGE).sgml |
| 19 | docbook2man $(PACKAGE).sgml |