[PATCH] fix: Use correct include path for libnl-3.0
Romain Naour
romain.naour
Mon Dec 29 12:54:02 PST 2014
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
--
1.9.3
More information about the Hostap
mailing list