Skip to content

Commit

Permalink
pythongh-110828: AIX 32bit build needs -latomic for _testcapi module (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
ayappanec authored and Glyphack committed Jan 27, 2024
1 parent b710b9d commit b0d32e0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AIX 32bit needs ``-latomic`` to build the :mod:`!_testcapi` extension module.
3 changes: 2 additions & 1 deletion configure

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

8 changes: 6 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -7056,7 +7056,8 @@ int main()
])

AS_VAR_IF([ac_cv_libatomic_needed], [yes],
[LIBS="${LIBS} -latomic"])
[LIBS="${LIBS} -latomic"
LIBATOMIC=${LIBATOMIC-"-latomic"}])
_RESTORE_VAR([CPPFLAGS])


Expand Down Expand Up @@ -7328,7 +7329,10 @@ PY_STDLIB_MOD([_hashlib], [], [test "$ac_cv_working_openssl_hashlib" = yes],
[$OPENSSL_INCLUDES], [$OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH $LIBCRYPTO_LIBS])

dnl test modules
PY_STDLIB_MOD([_testcapi], [test "$TEST_MODULES" = yes])
PY_STDLIB_MOD([_testcapi],
[test "$TEST_MODULES" = yes],
dnl Modules/_testcapi needs -latomic for 32bit AIX build
[], [], [$LIBATOMIC])
PY_STDLIB_MOD([_testclinic], [test "$TEST_MODULES" = yes])
PY_STDLIB_MOD([_testclinic_limited], [test "$TEST_MODULES" = yes])
PY_STDLIB_MOD([_testinternalcapi], [test "$TEST_MODULES" = yes])
Expand Down

0 comments on commit b0d32e0

Please sign in to comment.