[PATCH] fix: Use correct include path for libnl-3.0

Romain Naour romain.naour at openwide.fr
Sat Jan 10 09:17:55 EST 2015


Hi,

Le 29/12/2014 21:54, Romain Naour a écrit :
> The '/usr/include/libnl3' header path is unsafe for cross-compilation.
> Use pkg-config to find libnl-3.0 headers.
> 
> Signed-off-by: Romain Naour <romain.naour at openwide.fr>
> ---
>  src/drivers/drivers.mak | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/drivers/drivers.mak b/src/drivers/drivers.mak
> index ab392bc..26d360b 100644
> --- a/src/drivers/drivers.mak
> +++ b/src/drivers/drivers.mak
> @@ -39,7 +39,7 @@ NEED_RFKILL=y
>  ifdef CONFIG_LIBNL32
>    DRV_LIBS += -lnl-3
>    DRV_LIBS += -lnl-genl-3
> -  DRV_CFLAGS += -DCONFIG_LIBNL20 -I/usr/include/libnl3
> +  DRV_CFLAGS += -DCONFIG_LIBNL20 `pkg-config --cflags libnl-3.0`
>  ifdef CONFIG_LIBNL3_ROUTE
>    DRV_LIBS += -lnl-route-3
>    DRV_CFLAGS += -DCONFIG_LIBNL3_ROUTE
> 

Please, consider this patch for the next release.

Thanks.

Best regards,
Romain Naour


More information about the HostAP mailing list