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 461c021..8bc9cde 100644 |
| 9 | --- a/Makefile |
| 10 | +++ b/Makefile |
| 11 | @@ -86,7 +86,7 @@ libs: |
| 12 | make -C libipvs |
| 13 | |
| 14 | ipvsadm: $(OBJS) libs |
| 15 | - $(CC) $(CFLAGS) -o $@ $(OBJS) $(STATIC_LIBS) $(LIBS) |
| 16 | + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(STATIC_LIBS) $(LIBS) |
| 17 | |
| 18 | install: all |
| 19 | if [ ! -d $(SBIN) ]; then $(MKDIR) -p $(SBIN); fi |