gh-109054: Don't use libatomic on cross-compilation (#109211)

configure no longer uses libatomic by default when Python is
cross-compiled. The LIBATOMIC variable can be set manually in this
case:

    ./configure LIBATOMIC="-latomic" (...)
This commit is contained in:
Victor Stinner 2023-09-10 18:21:13 +02:00 committed by GitHub
parent 4297499696
commit 71b6e2602c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 8 deletions

7
configure generated vendored
View File

@ -27774,7 +27774,7 @@ then :
else $as_nop else $as_nop
if test "$cross_compiling" = yes if test "$cross_compiling" = yes
then : then :
ac_cv_libatomic_needed=yes ac_cv_libatomic_needed=no
else $as_nop else $as_nop
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
@ -27811,17 +27811,14 @@ int main()
_ACEOF _ACEOF
if ac_fn_c_try_run "$LINENO" if ac_fn_c_try_run "$LINENO"
then : then :
ac_cv_libatomic_needed=no ac_cv_libatomic_needed=no
else $as_nop else $as_nop
ac_cv_libatomic_needed=yes ac_cv_libatomic_needed=yes
fi fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext conftest.$ac_objext conftest.beam conftest.$ac_ext
fi fi
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libatomic_needed" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libatomic_needed" >&5
printf "%s\n" "$ac_cv_libatomic_needed" >&6; } printf "%s\n" "$ac_cv_libatomic_needed" >&6; }

View File

@ -7007,9 +7007,10 @@ int main()
} }
return 0; // all good return 0; // all good
} }
]])],[ ]])],
ac_cv_libatomic_needed=no [ac_cv_libatomic_needed=no], dnl build succeeded
],[ac_cv_libatomic_needed=yes],[ac_cv_libatomic_needed=yes]) [ac_cv_libatomic_needed=yes], dnl build failed
[ac_cv_libatomic_needed=no]) dnl cross compilation
]) ])
AS_VAR_IF([ac_cv_libatomic_needed], [yes], AS_VAR_IF([ac_cv_libatomic_needed], [yes],