From: Benjamin Poirier <bpoirier@suse.de>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: netdev@vger.kernel.org
Subject: [PATCH iproute2] Use pkg-config to obtain xtables.h path
Date: Wed, 6 Feb 2013 16:19:24 -0500 [thread overview]
Message-ID: <1360185564-29094-1-git-send-email-bpoirier@suse.de> (raw)
On openSUSE 12.2 (at least) xtables.h is not installed in the system-wide
include dir but in /usr/include/iptables-1.4.16.3/. This results in the
following build failure:
em_ipset.c:26:21: fatal error: xtables.h: No such file or directory
Other includers of xtables.h already call out to pkg-config
---
tc/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tc/Makefile b/tc/Makefile
index 696f891..f26e764 100644
--- a/tc/Makefile
+++ b/tc/Makefile
@@ -140,6 +140,8 @@ m_xt.so: m_xt.c
m_xt_old.so: m_xt_old.c
$(CC) $(CFLAGS) $(LDFLAGS) -shared -fpic -o m_xt_old.so m_xt_old.c $$($(PKG_CONFIG) xtables --cflags --libs)
+em_ipset.o: CFLAGS += $$($(PKG_CONFIG) xtables --cflags)
+
%.yacc.c: %.y
$(YACC) $(YACCFLAGS) -o $@ $<
--
1.7.10.4
next reply other threads:[~2013-02-06 21:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-06 21:19 Benjamin Poirier [this message]
2013-02-11 17:25 ` [PATCH iproute2] Use pkg-config to obtain xtables.h path Stephen Hemminger
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=1360185564-29094-1-git-send-email-bpoirier@suse.de \
--to=bpoirier@suse.de \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox