From: Andreas Mohr via buildroot <buildroot@buildroot.org>
To: buildroot@buildroot.org
Cc: Pascal de Bruijn <p.debruijn@unilogic.nl>
Subject: [Buildroot] [PATCH v2 1/1] package/libargon2: conditionally shared/static lib build
Date: Fri, 15 May 2026 22:42:56 +0000 [thread overview]
Message-ID: <20260515224257.29328-1-and@gmx.li> (raw)
libargon2 build shared and static lib by default.
Add conditionally BR2_SHARED_LIBS and BR2_STATIC_LIBS support.
Signed-off-by: Andreas Mohr <and@gmx.li>
---
Changes in v2:
- add conditionally shared lib build
Signed-off-by: Andreas Mohr <and@gmx.li>
---
package/libargon2/Config.in | 5 -----
package/libargon2/libargon2.mk | 6 ++++++
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/package/libargon2/Config.in b/package/libargon2/Config.in
index 6bba74cfb2..73c1e0d777 100644
--- a/package/libargon2/Config.in
+++ b/package/libargon2/Config.in
@@ -1,12 +1,7 @@
config BR2_PACKAGE_LIBARGON2
bool "libargon2"
depends on BR2_USE_MMU
- depends on !BR2_STATIC_LIBS
help
A modern password hashing algorithm
https://password-hashing.net/#argon2
-
-comment "libargon needs a toolchain w/ dynamic library"
- depends on BR2_USE_MMU
- depends on BR2_STATIC_LIBS
diff --git a/package/libargon2/libargon2.mk b/package/libargon2/libargon2.mk
index b3f6e1b216..8ca0071a15 100644
--- a/package/libargon2/libargon2.mk
+++ b/package/libargon2/libargon2.mk
@@ -23,6 +23,12 @@ ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
LIBARGON2_OPTS += NO_THREADS=1
endif
+ifeq ($(BR2_STATIC_LIBS),y)
+LIBARGON2_OPTS += LIB_SH= LINKED_LIB_SH=
+else ifeq ($(BR2_SHARED_LIBS),y)
+LIBARGON2_OPTS += LIB_ST=
+endif
+
define LIBARGON2_BUILD_CMDS
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
$(LIBARGON2_OPTS)
--
2.53.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
reply other threads:[~2026-05-15 22:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260515224257.29328-1-and@gmx.li \
--to=buildroot@buildroot.org \
--cc=and@gmx.li \
--cc=p.debruijn@unilogic.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.