From: Daniel Borkmann <dborkman@redhat.com>
To: Simon Horman <horms@verge.net.au>
Cc: lvs-devel@vger.kernel.org, Wensong Zhang <wensong@linux-vs.org>,
Julian Anastasov <ja@ssi.bg>,
Jesper Dangaard Brouer <jbrouer@redhat.com>
Subject: Re: [PATCH] Allow override of CFLAGS
Date: Thu, 08 Aug 2013 09:47:30 +0200 [thread overview]
Message-ID: <52034D12.4070100@redhat.com> (raw)
In-Reply-To: <1375937999-11660-1-git-send-email-horms@verge.net.au>
On 08/08/2013 06:59 AM, Simon Horman wrote:
> 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'
For libnl3, what about ...
cflags: $(shell pkg-config --cflags libnl-3.0) $(shell pkg-config --cflags libnl-3.0)
libs: $(shell pkg-config --libs libnl-3.0) $(shell pkg-config --libs libnl-genl-3.0)
> 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
>
>
>
next prev parent reply other threads:[~2013-08-08 7:47 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52034D12.4070100@redhat.com \
--to=dborkman@redhat.com \
--cc=horms@verge.net.au \
--cc=ja@ssi.bg \
--cc=jbrouer@redhat.com \
--cc=lvs-devel@vger.kernel.org \
--cc=wensong@linux-vs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.