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

Romain Naour romain.naour
Sat Jan 10 06:17:55 PST 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