[PATCH] src/drivers/drivers.mak: include libnl-tiny to DRV_CFLAGS to fix a build error

Ivan Ivanov qmastery16 at gmail.com
Fri Feb 6 17:57:15 PST 2026


Dear Jouni, thank you very much for your reply. I have looked at
surrounding code and amended my patch to use pkgconfig, tested and it
still builds fine. Here is a new version:

[PATCHv2] src/drivers/drivers.mak: include libnl-tiny to DRV_CFLAGS to
fix a build error

Signed-off-by: Ivan Ivanov <qmastery16 at gmail.com>

diff --git a/src/drivers/drivers.mak b/src/drivers/drivers.mak
index a03d4a034..1947986af 100644
--- a/src/drivers/drivers.mak
+++ b/src/drivers/drivers.mak
@@ -193,6 +193,7 @@ ifdef CONFIG_LIBNL32
 else
   ifdef CONFIG_LIBNL_TINY
     DRV_LIBS += -lnl-tiny
+    DRV_CFLAGS += $(shell $(PKG_CONFIG) --cflags libnl-tiny)
   else
     ifndef CONFIG_OSX
       DRV_LIBS += -lnl
diff --git a/src/drivers/drivers.mk b/src/drivers/drivers.mk
index 10eab6a92..65ee3b16d 100644
--- a/src/drivers/drivers.mk
+++ b/src/drivers/drivers.mk
@@ -171,6 +171,7 @@ endif
 else
   ifdef CONFIG_LIBNL_TINY
     DRV_LIBS += -lnl-tiny
+    DRV_CFLAGS += -I/usr/include/libnl-tiny
   else
     DRV_LIBS += -lnl
     DRV_LIBS += -lnl-genl



More information about the Hostap mailing list