hc
2023-02-15 9c2dfff96adcfcdf2a1143893a7dd749b9f3677a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From 8aff1e965ec17262f3a5b376f7eb3e053d81905c Mon Sep 17 00:00:00 2001
From: Changqing Li <changqing.li@windriver.com>
Date: Tue, 24 Jul 2018 18:18:05 +0800
Subject: [PATCH] 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>
 
Update to version 1.29
 
Signed-off-by: Changqing Li <changqing.li@windriver.com>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 
diff --git a/Makefile b/Makefile
index f29bbae..81beb5a 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
-- 
2.7.4