]> git.ipfire.org Git - ipfire-3.x.git/blame - ipvsadm/patches/build-flags.patch
ipvsadm: Update to 1.28
[ipfire-3.x.git] / ipvsadm / patches / build-flags.patch
CommitLineData
0146ea53
MT
1diff --git a/Makefile b/Makefile
2index 91a2991..1d27655 100644
3--- a/Makefile
4+++ b/Makefile
5@@ -87,7 +87,7 @@ libs:
6 make -C libipvs
7
8 ipvsadm: $(OBJS) $(STATIC_LIBS)
9- $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
10+ $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
11
12 install: all
13 if [ ! -d $(SBIN) ]; then $(MKDIR) -p $(SBIN); fi
14diff --git a/libipvs/Makefile b/libipvs/Makefile
15index f845c8b..46cd4eb 100644
16--- a/libipvs/Makefile
17+++ b/libipvs/Makefile
18@@ -33,7 +33,7 @@ $(STATIC_LIB): libipvs.o ip_vs_nl_policy.o
19 ar rv $@ $^
20
21 $(SHARED_LIB): libipvs.o ip_vs_nl_policy.o
22- $(CC) -shared -Wl,-soname,$@ -o $@ $^
23+ $(CC) $(LDFLAGS) -shared -Wl,-soname,$@ -o $@ $^
24
25 %.o: %.c
26 $(CC) $(CFLAGS) $(INCLUDE) $(DEFINES) -c -o $@ $<