mirror of https://github.com/python/cpython
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:
parent
4297499696
commit
71b6e2602c
|
@ -27774,7 +27774,7 @@ then :
|
|||
else $as_nop
|
||||
if test "$cross_compiling" = yes
|
||||
then :
|
||||
ac_cv_libatomic_needed=yes
|
||||
ac_cv_libatomic_needed=no
|
||||
else $as_nop
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
@ -27811,17 +27811,14 @@ int main()
|
|||
_ACEOF
|
||||
if ac_fn_c_try_run "$LINENO"
|
||||
then :
|
||||
|
||||
ac_cv_libatomic_needed=no
|
||||
|
||||
else $as_nop
|
||||
ac_cv_libatomic_needed=yes
|
||||
ac_cv_libatomic_needed=yes
|
||||
fi
|
||||
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
||||
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
||||
fi
|
||||
|
||||
|
||||
fi
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libatomic_needed" >&5
|
||||
printf "%s\n" "$ac_cv_libatomic_needed" >&6; }
|
||||
|
|
|
@ -7007,9 +7007,10 @@ int main()
|
|||
}
|
||||
return 0; // all good
|
||||
}
|
||||
]])],[
|
||||
ac_cv_libatomic_needed=no
|
||||
],[ac_cv_libatomic_needed=yes],[ac_cv_libatomic_needed=yes])
|
||||
]])],
|
||||
[ac_cv_libatomic_needed=no], dnl build succeeded
|
||||
[ac_cv_libatomic_needed=yes], dnl build failed
|
||||
[ac_cv_libatomic_needed=no]) dnl cross compilation
|
||||
])
|
||||
|
||||
AS_VAR_IF([ac_cv_libatomic_needed], [yes],
|
||||
|
|
Loading…
Reference in New Issue