blob: 1bf1eed4c326d21184a84c34124ffe25036e8ce7 [file] [log] [blame]
Patrick Williamsddad1a12017-02-23 20:36:32 -06001Add LDFLAGS variable to Makefile, make sure the extra linker flags can be passed.
2
3Upstream-Status: Pending
4
5Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
6
7diff --git a/Makefile b/Makefile
8index 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