summaryrefslogtreecommitdiffstats
path: root/meta-openembedded/meta-networking/recipes-support/ipvsadm/ipvsadm/makefile-add-ldflags.patch
blob: 1bf1eed4c326d21184a84c34124ffe25036e8ce7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Add LDFLAGS variable to Makefile, make sure the extra linker flags can be passed.

Upstream-Status: Pending

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>

diff --git a/Makefile b/Makefile
index 461c021..8bc9cde 100644
--- a/Makefile
+++ b/Makefile
@@ -86,7 +86,7 @@ libs:
 		make -C libipvs
 
 ipvsadm:	$(OBJS) libs
-		$(CC) $(CFLAGS) -o $@ $(OBJS) $(STATIC_LIBS) $(LIBS)
+		$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(STATIC_LIBS) $(LIBS)
 
 install:        all
 		if [ ! -d $(SBIN) ]; then $(MKDIR) -p $(SBIN); fi
OpenPOWER on IntegriCloud