Skip to content

Commit f445d2e

Browse files
authored
gh-146264: Use static HACL deps for static module builds (GH-146265)
1 parent afbe137 commit f445d2e

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
@@ -8217,7 +8217,7 @@ AC_SUBST([LIBHACL_BLAKE2_SIMD256_OBJS])
82178217
# HACL*-based cryptographic primitives
82188218

82198219
AC_MSG_CHECKING([for HACL* library linking type])
8220-
if test "$ac_sys_system" = "WASI"; then
8220+
if test "$ac_sys_system" = "WASI" || test "$MODULE_BUILDTYPE" = "static"; then
82218221
LIBHACL_LDEPS_LIBTYPE=STATIC
82228222
AC_MSG_RESULT([static])
82238223
else

0 commit comments

Comments
 (0)