Re: [PATCH v2] ipvsadm: detect LIBS and CFLAGS for libnl versions

To: Jesper Dangaard Brouer <jbrouer@xxxxxxxxxx>
Subject: Re: [PATCH v2] ipvsadm: detect LIBS and CFLAGS for libnl versions
Cc: Simon Horman <horms@xxxxxxxxxxxx>, Wensong Zhang <wensong@xxxxxxxxxxxx>, Thomas Graf <tgraf@xxxxxxxxxx>, "Ryan O'Hara" <rohara@xxxxxxxxxx>, Julian Anastasov <ja@xxxxxx>, lvs-devel@xxxxxxxxxxxxxxx
From: Daniel Borkmann <dborkman@xxxxxxxxxx>
Date: Fri, 09 Aug 2013 18:33:29 +0200
On 08/09/2013 06:28 PM, Jesper Dangaard Brouer wrote:
Automated detecting of LIBS and CFLAGS for different versions
of libnl via using pkg-config, in the Makefiles.  This should
make it easier to compile on different distributions.

Detecting in prioritized order from the most recent version, and only
the first detected lib is used. Thus, supporting several libnl version
being installed on the same system.

Only tested with libnl-1 and libnl-3.0, but also adding support for

Signed-off-by: Jesper Dangaard Brouer <brouer@xxxxxxxxxx>
V2: Fix small bug noticed by Daniel, fall-through libs case missed a "l"

  Makefile         |    8 +++++++-
  libipvs/Makefile |    7 +++++++
  2 files changed, 14 insertions(+), 1 deletion(-)

Acked-by: Daniel Borkmann <dborkman@xxxxxxxxxx>
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>