Skip to content

Commit

Permalink
pythongh-109054: Don't use libatomic on cross-compilation
Browse files Browse the repository at this point in the history
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" (...)
  • Loading branch information
vstinner committed Sep 10, 2023
1 parent a341750 commit bed957b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 1 addition & 4 deletions configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions configure.ac
Expand Up @@ -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 compilatio
])

AS_VAR_IF([ac_cv_libatomic_needed], [yes],
Expand Down

0 comments on commit bed957b

Please sign in to comment.