From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Mack Date: Sat, 03 Dec 2011 17:43:36 +0100 Subject: [Buildroot] [PATCH v3 4/5] iw: fix build with new libnl-3 In-Reply-To: References: <1322917624-10152-1-git-send-email-zonque@gmail.com> <1322917624-10152-4-git-send-email-zonque@gmail.com> Message-ID: <4EDA51B8.9070909@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On 12/03/2011 04:20 PM, Yegor Yefremov wrote: > On Sat, Dec 3, 2011 at 2:07 PM, Daniel Mack wrote: >> The CFLAGS have to be augmented for the include dir and the patch >> needs to be tweaked to make the binary link to libnl-3 instead of >> libnl-gen. >> >> Signed-off-by: Daniel Mack >> --- >> package/iw/iw-libnl-30-support.patch | 2 +- >> package/iw/iw.mk | 2 +- >> 2 files changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/package/iw/iw-libnl-30-support.patch b/package/iw/iw-libnl-30-support.patch >> index 48a179f..02e818c 100644 >> --- a/package/iw/iw-libnl-30-support.patch >> +++ b/package/iw/iw-libnl-30-support.patch >> @@ -20,7 +20,7 @@ Index: b/Makefile >> >> +ifeq ($(NL3FOUND),Y) >> +CFLAGS += -DCONFIG_LIBNL20 >> -+LIBS += -lnl-genl >> ++LIBS += -lnl-genl-3 >> +NLLIBNAME = libnl-3.0 >> +endif >> + >> diff --git a/package/iw/iw.mk b/package/iw/iw.mk >> index 9f1d65f..65326b7 100644 >> --- a/package/iw/iw.mk >> +++ b/package/iw/iw.mk >> @@ -15,7 +15,7 @@ IW_MAKE_ENV = PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \ >> >> define IW_CONFIGURE_CMDS >> echo "CC = $(TARGET_CC)" >$(IW_CONFIG) >> - echo "CFLAGS = $(TARGET_CFLAGS)" >>$(IW_CONFIG) >> + echo "CFLAGS = $(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/libnl3/" >>$(IW_CONFIG) >> echo "LDFLAGS = $(TARGET_LDFLAGS)" >>$(IW_CONFIG) >> endef > > This patch won't apply. This an old version (v1). Sorry, branch confusion on my side. Thanks for noticing. > What is the reason for v3? TARGET_DIR vs. STAGING_DIR confusion. I'll post a v4 against -next then. Thanks, Daniel