LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[PATCH] ipvsadm-1.24 Makefile fix

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>, Horms <horms@xxxxxxxxxxxx>, Wensong Zhang <wensong@xxxxxxxxxxxx>
Subject: [PATCH] ipvsadm-1.24 Makefile fix
From: Roberto Nibali <ratz@xxxxxxxxxxxx>
Date: Wed, 19 Jul 2006 11:05:10 +0200
Hello guys,

The attached patch makes ipvsadm compile again for me. I have to attend
a meeting, changelog will follow later :).

Cheers,
Roberto Nibali, ratz
-- 
-------------------------------------------------------------
addr://Kasinostrasse 30, CH-5001 Aarau tel://++41 62 823 9355
http://www.terreactive.com             fax://++41 62 823 9356
-------------------------------------------------------------
10 Jahre Kompetenz in IT-Sicherheit.              1996 - 2006
Wir sichern Ihren Erfolg.                      terreActive AG
-------------------------------------------------------------
diff -Nur ipvsadm-1.24/Makefile ipvsadm-1.24-ratz/Makefile
--- ipvsadm-1.24/Makefile       2005-12-10 17:00:07 +0100
+++ ipvsadm-1.24-ratz/Makefile  2006-07-19 11:01:32 +0200
@@ -35,7 +35,9 @@
 RPMSPECDIR     = $(shell rpm --eval '%_specdir')
 
 CC             = gcc
-INCLUDE                = -I/usr/src/linux/include -I.. -I.
+LDFLAGS                =
+KERNELSOURCE   = /usr/src/linux
+INCLUDE                = -I$(KERNELSOURCE)/include -I.. -I.
 SBIN           = $(BUILD_ROOT)/sbin
 MANDIR         = usr/man
 MAN            = $(BUILD_ROOT)/$(MANDIR)/man8
@@ -89,10 +91,10 @@
 all:            libs ipvsadm
 
 libs:
-               make -C libipvs
+               make -C libipvs CFLAGS="$(CFLAGS)" INCLUDE="$(INCLUDE)"
 
 ipvsadm:       $(OBJS) $(STATIC_LIBS)
-               $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
+               $(CC) $(CFLAGS) -o $@ $^ $(LIBS) $(LDFLAGS)
 
 install:        all
                if [ ! -d $(SBIN) ]; then $(MKDIR) -p $(SBIN); fi
@@ -108,13 +110,13 @@
                fi
 
 clean:
-               rm -f ipvsadm $(NAME).spec $(NAME)-$(VERSION).tar.gz
                rm -rf debian/tmp
                find . -name '*.[ao]' -o -name "*~" -o -name "*.orig" \
                  -o -name "*.rej" -o -name core | xargs rm -f
                make -C libipvs clean
 
 distclean:     clean
+               rm -f ipvsadm $(NAME).spec $(NAME)-$(VERSION).tar.gz
 
 dist:          distclean
                sed -e "s/@@VERSION@@/$(VERSION)/g" \




<Prev in Thread] Current Thread [Next in Thread>