Skip to content

Commit ee1b847

Browse files
committed
gh-146264: Use static HACL deps for static module builds
1 parent 83360b5 commit ee1b847

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Fix static module builds on non-WASI targets by linking HACL dependencies as
2+
static libraries when ``MODULE_BUILDTYPE=static``, preventing duplicate
3+
``_Py_LibHacl_*`` symbol errors at link time.

configure

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8171,7 +8171,7 @@ AC_SUBST([LIBHACL_BLAKE2_SIMD256_OBJS])
81718171
# HACL*-based cryptographic primitives
81728172

81738173
AC_MSG_CHECKING([for HACL* library linking type])
8174-
if test "$ac_sys_system" = "WASI"; then
8174+
if test "$ac_sys_system" = "WASI" || test "$MODULE_BUILDTYPE" = "static"; then
81758175
LIBHACL_LDEPS_LIBTYPE=STATIC
81768176
AC_MSG_RESULT([static])
81778177
else

0 commit comments

Comments
 (0)