File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -7961,8 +7961,18 @@ PY_STDLIB_MOD_SIMPLE([unicodedata])
79617961# ##############################################################################
79627962# Cryptographic primitives
79637963LIBHASHLIB_INTERNAL_CFLAGS="-I\$(srcdir)/Modules/_hashlib"
7964- LIBHASHLIB_INTERNAL_LDFLAGS="-lm \$(LIBHASHLIB_INTERNAL_A)"
7965- LIBHASHLIB_INTERNAL="\$(LIBHASHLIB_INTERNAL_HEADERS) \$(LIBHASHLIB_INTERNAL_A)"
7964+ if test "$ac_sys_system" = "Emscripten"; then
7965+ LIBHASHLIB_INTERNAL_LDFLAGS="-lm"
7966+ LIBHASHLIB_INTERNAL="\$(LIBHASHLIB_INTERNAL_HEADERS)"
7967+ # Directly link the library to the interpreter instead to prevent duplicated
7968+ # symbols. This is a temporary fix until we manage to find a way to elegantly
7969+ # configure the various cryptographic modules.
7970+ LDFLAGS="$LDFLAGS \$(LIBHASHLIB_INTERNAL_A)"
7971+ LIBS="$LIBS \$(LIBHASHLIB_INTERNAL_A)"
7972+ else
7973+ LIBHASHLIB_INTERNAL_LDFLAGS="-lm \$(LIBHASHLIB_INTERNAL_A)"
7974+ LIBHASHLIB_INTERNAL="\$(LIBHASHLIB_INTERNAL_HEADERS) \$(LIBHASHLIB_INTERNAL_A)"
7975+ fi
79667976
79677977AC_SUBST ( [ LIBHASHLIB_INTERNAL_CFLAGS] )
79687978AC_SUBST ( [ LIBHASHLIB_INTERNAL] )
You can’t perform that action at this time.
0 commit comments