[Buildroot] [PATCH v3 4/5] iw: fix build with new libnl-3
Daniel Mack
zonque at gmail.com
Sat Dec 3 16:43:36 UTC 2011
On 12/03/2011 04:20 PM, Yegor Yefremov wrote:
> On Sat, Dec 3, 2011 at 2:07 PM, Daniel Mack <zonque at gmail.com> 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 <zonque at gmail.com>
>> ---
>> 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
More information about the buildroot
mailing list