All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Allow override of CFLAGS
@ 2013-08-08  4:59 Simon Horman
  2013-08-08  6:13 ` Julian Anastasov
  2013-08-08  7:47 ` Daniel Borkmann
  0 siblings, 2 replies; 22+ messages in thread
From: Simon Horman @ 2013-08-08  4:59 UTC (permalink / raw)
  To: lvs-devel
  Cc: Wensong Zhang, Julian Anastasov, Jesper Dangaard Brouer,
	Simon Horman

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@verge.net.au>
---
 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 -mcmodel=medlow
 else
-    CFLAGS = -Wall -Wunused -Wstrict-prototypes -g
+    CFLAGS = -I/usr/include/libnl3 -Wall -Wunused -Wstrict-prototypes -g
 endif
 
 
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2013-08-09  8:32 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-08  4:59 [PATCH] Allow override of CFLAGS Simon Horman
2013-08-08  6:13 ` Julian Anastasov
2013-08-08  7:34   ` Simon Horman
2013-08-08  8:30     ` Julian Anastasov
2013-08-08  7:47 ` Daniel Borkmann
2013-08-08  8:19   ` ipvsadm git head not compiling on RHEL6 Jesper Dangaard Brouer
2013-08-08  8:27     ` Daniel Borkmann
2013-08-08  9:00       ` Simon Horman
2013-08-08  9:17       ` Jesper Dangaard Brouer
2013-08-08  9:23         ` Daniel Borkmann
2013-08-08  9:33           ` Thomas Graf
2013-08-08  9:00   ` [PATCH] Allow override of CFLAGS Simon Horman
2013-08-08  9:05     ` Daniel Borkmann
2013-08-08 12:10   ` [PATCH] ipvsadm: fix compiling tool on distros with only libnl-1 Jesper Dangaard Brouer
2013-08-08 12:23     ` Daniel Borkmann
2013-08-08 20:00     ` Ryan O'Hara
2013-08-09  5:47       ` Simon Horman
2013-08-09  6:27         ` [PATCH v2] " Jesper Dangaard Brouer
2013-08-09  8:32           ` Simon Horman
2013-08-09  6:43         ` [PATCH] " Jesper Dangaard Brouer
2013-08-09  6:55           ` Daniel Borkmann
2013-08-09  8:31             ` Simon Horman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.