[PATCH] Allow override of CFLAGS

To: lvs-devel@xxxxxxxxxxxxxxx
Subject: [PATCH] Allow override of CFLAGS
Cc: Wensong Zhang <wensong@xxxxxxxxxxxx>, Julian Anastasov <ja@xxxxxx>, Jesper Dangaard Brouer <jbrouer@xxxxxxxxxx>, Simon Horman <horms@xxxxxxxxxxxx>
From: Simon Horman <horms@xxxxxxxxxxxx>
Date: Thu, 8 Aug 2013 13:59:59 +0900
When building ipvsadm this allows make to add to CFLAGS supplied
on the command line.

This seems to make sense as Makefile and libipvs/Makefile
add different CFLAGS but it may be desirable to supply supplementary
flags when building ipvsadm.

In particular the following may be useful when building ipvsadm
on Debian Jessie.

make CFLAGS='-I/usr/include/libnl3' LIBS='-lnl-3 -lnl-genl-3 -lnl-3 -lpopt'

Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx>
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 6e36d79..c8c1eec 100644
--- a/Makefile
+++ b/Makefile
@@ -48,7 +48,7 @@ STATIC_LIBS   = libipvs/libipvs.a
 ifeq "${ARCH}" "sparc64"
     CFLAGS = -Wall -Wunused -Wstrict-prototypes -g -m64 -pipe -mcpu=ultrasparc 
-    CFLAGS = -Wall -Wunused -Wstrict-prototypes -g
+    CFLAGS = -I/usr/include/libnl3 -Wall -Wunused -Wstrict-prototypes -g

To unsubscribe from this list: send the line "unsubscribe lvs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at

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