From patchwork Wed Feb 6 21:19:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Poirier X-Patchwork-Id: 218757 X-Patchwork-Delegate: shemminger@vyatta.com Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3BE4B2C02F0 for ; Thu, 7 Feb 2013 08:27:27 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758251Ab3BFV1X (ORCPT ); Wed, 6 Feb 2013 16:27:23 -0500 Received: from mail-vb0-f48.google.com ([209.85.212.48]:60575 "EHLO mail-vb0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758103Ab3BFV1W (ORCPT ); Wed, 6 Feb 2013 16:27:22 -0500 Received: by mail-vb0-f48.google.com with SMTP id fc21so1175305vbb.35 for ; Wed, 06 Feb 2013 13:27:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer; bh=nN3q76oJojtdoZ7JlhgktowedcnaUGZvm5WENn0f24Y=; b=Yd29YIft8vKbkbw6iGBjKdwu6HHVPBeoHAkqIYHx4EvEiHlI7//jn75B5qMLbMwO4F HBhr97P/qDEFKKfulWjCMNwotGY4q/aOlxTLrYCS9W3YApMirCXsfaWwTimMrPoD4kIT GqIJb90ahBU6XNN8hI8NTQdjE3ElbXtNWEVoBmW5ZG/VR6Q9f6XfJ6Y8VZwM569EC4bC YuQ9ewibJp85AxD529t+KN/XJec043ekbu+eFlZl4VulRz61I7GrzDjgja7Z7hYsYgmT QpFP5iu6rGxDnzYAepgNImD9f3PACpbgWgH56AEihVFSKEi0wMPhY8RL0dddRprY3TYv mogw== X-Received: by 10.58.40.9 with SMTP id t9mr25081661vek.10.1360185593694; Wed, 06 Feb 2013 13:19:53 -0800 (PST) Received: from d2.synalogic.ca (modemcable062.27-82-70.mc.videotron.ca. [70.82.27.62]) by mx.google.com with ESMTPS id q5sm4671766vdj.5.2013.02.06.13.19.52 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 06 Feb 2013 13:19:52 -0800 (PST) From: Benjamin Poirier To: Stephen Hemminger 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 Message-Id: <1360185564-29094-1-git-send-email-bpoirier@suse.de> X-Mailer: git-send-email 1.7.10.4 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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 $@ $<