aboutsummaryrefslogtreecommitdiffstats
path: root/argon2/suffix.mk
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-05-16 02:11:29 +0200
committerMattias Andrée <m@maandree.se>2026-05-16 02:11:29 +0200
commit8e7bfadb3eb9f43eb0b670b908b479325722fee5 (patch)
treee7f26f67cc4da2846e0ac3f8201e1e82de3c6112 /argon2/suffix.mk
parentm (diff)
downloadlibrecrypt-8e7bfadb3eb9f43eb0b670b908b479325722fee5.tar.gz
librecrypt-8e7bfadb3eb9f43eb0b670b908b479325722fee5.tar.bz2
librecrypt-8e7bfadb3eb9f43eb0b670b908b479325722fee5.tar.xz
Add WITH_LIBAR2SIMPLIFIED=false + work on fuzzing code
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r--argon2/suffix.mk22
1 files changed, 16 insertions, 6 deletions
diff --git a/argon2/suffix.mk b/argon2/suffix.mk
index 65617b1..5ca2ceb 100644
--- a/argon2/suffix.mk
+++ b/argon2/suffix.mk
@@ -1,5 +1,7 @@
SUPPORT_ANY_ARGON2 = ($(SUPPORT_ARGON2I) || $(SUPPORT_ARGON2D) || $(SUPPORT_ARGON2ID) || $(SUPPORT_ARGON2DS))
+WITH_LIBAR2SIMPLIFIED = true
+
HDR += argon2/argon2.h
OBJ_ARGON2 !=\
@@ -29,19 +31,27 @@ CPPFLAGS_ARGON2 !=\
;fi;\
if $(SUPPORT_ARGON2DS); then echo\
-DSUPPORT_ARGON2DS\
+ ;fi;\
+ if ! $(WITH_LIBAR2SIMPLIFIED); then echo\
+ -DNO_LIBAR2SIMPLIFIED\
;fi
CFLAGS_ARGON2 !=\
- if $(SUPPORT_ANY_ARGON2); then echo\
+ if $(SUPPORT_ANY_ARGON2) && $(WITH_LIBAR2SIMPLIFIED); then echo\
-pthread\
;fi
LDFLAGS_ARGON2 !=\
- if $(SUPPORT_ANY_ARGON2); then echo\
- -lar2simplified\
- -lar2\
- -lblake\
- -pthread\
+ if $(SUPPORT_ANY_ARGON2); then\
+ if $(WITH_LIBAR2SIMPLIFIED); then echo\
+ -lar2simplified\
+ -lar2\
+ -lblake\
+ -pthread\
+ ;else echo\
+ -lar2\
+ -lblake\
+ ;fi\
;fi
CPPFLAGS_MODULES += $(CPPFLAGS_ARGON2)