public inbox for rulkc@linuxtesting.org
 help / color / mirror / Atom feed
* [rulkc] [PATCH 1/1] build: static libwpa_client supported
@ 2026-08-01 18:39 viper
  2026-08-09  9:33 ` Konstantin Menyaev
  2026-08-17 21:41 ` Jouni Malinen
  0 siblings, 2 replies; 3+ messages in thread
From: viper @ 2026-08-01 18:39 UTC (permalink / raw)
  To: hostap; +Cc: rulkc, Konstantin Menyaev

From: Konstantin Menyaev <viper@landau•one>

CONFIG_BUILD_WPA_CLIENT_STATIC option added to build the static
libwpa_client library.

This is useful for applications that statically link against the
wpa_supplicant client API.

Signed-off-by: Konstantin Menyaev <viper@landau•one>
---
 wpa_supplicant/Makefile | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
index 2b82c42c8..4ab7ae512 100644
--- a/wpa_supplicant/Makefile
+++ b/wpa_supplicant/Makefile
@@ -24,6 +24,12 @@ ifdef CONFIG_BUILD_WPA_CLIENT_SO
 _all: libwpa_client.so
 endif
 
+ifdef CONFIG_BUILD_WPA_CLIENT_STATIC
+# add the dependency this way to allow CONFIG_BUILD_WPA_CLIENT_STATIC
+# being set in the config which is read by build.rules
+_all: libwpa_client.a
+endif
+
 ifndef CONFIG_NO_WPA_PASSPHRASE
 # add the dependency this way to allow CONFIG_NO_WPA_PASSPHRASE
 # being set in the config which is read by build.rules
@@ -91,6 +97,10 @@ endif
 ifdef CONFIG_BUILD_WPA_CLIENT_SO
 	install -m 0644 -D libwpa_client.so $(DESTDIR)/$(LIBDIR)/libwpa_client.so
 	install -m 0644 -D ../src/common/wpa_ctrl.h $(DESTDIR)/$(INCDIR)/wpa_ctrl.h
+endif
+ifdef CONFIG_BUILD_WPA_CLIENT_STATIC
+	install -m 0644 -D libwpa_client.a $(DESTDIR)/$(LIBDIR)/libwpa_client.a
+	install -m 0644 -D ../src/common/wpa_ctrl.h $(DESTDIR)/$(INCDIR)/wpa_ctrl.h
 endif
 	if ls eap_*.so >/dev/null 2>&1; then \
 		install -d $(DESTDIR)$(LIBDIR)/wpa_supplicant && \
-- 
2.55.0


_______________________________________________
rulkc mailing list
rulkc@linuxtesting.org
http://linuxtesting.org/cgi-bin/mailman/listinfo/rulkc

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-08-17 22:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-01 18:39 [rulkc] [PATCH 1/1] build: static libwpa_client supported viper
2026-08-09  9:33 ` Konstantin Menyaev
2026-08-17 21:41 ` Jouni Malinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®