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

* Re: [rulkc] [PATCH 1/1] build: static libwpa_client supported
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Konstantin Menyaev @ 2026-08-09  9:33 UTC (permalink / raw)
  To: hostap; +Cc: rulkc

On 8/1/26 21:39, viper@landau•one wrote:
> 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 && \

kindly remind

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

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

* Re: [rulkc] [PATCH 1/1] build: static libwpa_client supported
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Jouni Malinen @ 2026-08-17 21:41 UTC (permalink / raw)
  To: viper; +Cc: rulkc, hostap

On Sat, Aug 01, 2026 at 09:39:07PM +0300, viper@landau•one wrote:
> 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.

Thanks, applied.
 
-- 
Jouni Malinen                                            PGP id EFC895FA

_______________________________________________
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®