1
0

patch-libipvs_Makefile 592 B

1234567891011121314151617181920
  1. --- ipvsadm-1.26.orig/libipvs/Makefile 2008-09-21 12:02:03.000000000 +0200
  2. +++ ipvsadm-1.26/libipvs/Makefile 2012-07-20 13:53:25.000000000 +0200
  3. @@ -1,7 +1,7 @@
  4. # Makefile for libipvs
  5. -CC = gcc
  6. -CFLAGS = -Wall -Wunused -Wstrict-prototypes -g -fPIC
  7. +CC ?= gcc
  8. +CFLAGS ?= -Wall -Wunused -Wstrict-prototypes -g -fPIC
  9. ifneq (0,$(HAVE_NL))
  10. CFLAGS += -DLIBIPVS_USE_NL
  11. endif
  12. @@ -19,6 +19,7 @@ all: $(STATIC_LIB) $(SHARED_LIB)
  13. $(STATIC_LIB): libipvs.o ip_vs_nl_policy.o
  14. ar rv $@ $^
  15. + ranlib $@
  16. $(SHARED_LIB): libipvs.o ip_vs_nl_policy.o
  17. $(CC) -shared -Wl,-soname,$@ -o $@ $^