Skip to content

Commit

Permalink
pythongh-109054: Don't use libatomic on cross-compilation (python#109211
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 authored Sep 10, 2023
1 parent 4297499 commit 71b6e26
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 2 additions & 5 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
Original file line number Diff line number Diff line change
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 compilation
])

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

0 comments on commit 71b6e26

Please sign in to comment.