summaryrefslogtreecommitdiff
path: root/package/ipvsadm/patches/patch-libipvs_Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/ipvsadm/patches/patch-libipvs_Makefile')
-rw-r--r--package/ipvsadm/patches/patch-libipvs_Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/ipvsadm/patches/patch-libipvs_Makefile b/package/ipvsadm/patches/patch-libipvs_Makefile
new file mode 100644
index 000000000..d2e9f6b45
--- /dev/null
+++ b/package/ipvsadm/patches/patch-libipvs_Makefile
@@ -0,0 +1,20 @@
+--- ipvsadm-1.26.orig/libipvs/Makefile 2008-09-21 12:02:03.000000000 +0200
++++ ipvsadm-1.26/libipvs/Makefile 2012-07-20 13:53:25.000000000 +0200
+@@ -1,7 +1,7 @@
+ # Makefile for libipvs
+
+-CC = gcc
+-CFLAGS = -Wall -Wunused -Wstrict-prototypes -g -fPIC
++CC ?= gcc
++CFLAGS ?= -Wall -Wunused -Wstrict-prototypes -g -fPIC
+ ifneq (0,$(HAVE_NL))
+ CFLAGS += -DLIBIPVS_USE_NL
+ endif
+@@ -19,6 +19,7 @@ all: $(STATIC_LIB) $(SHARED_LIB)
+
+ $(STATIC_LIB): libipvs.o ip_vs_nl_policy.o
+ ar rv $@ $^
++ ranlib $@
+
+ $(SHARED_LIB): libipvs.o ip_vs_nl_policy.o
+ $(CC) -shared -Wl,-soname,$@ -o $@ $^