summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorAyappan Perumal <ayappap2@in.ibm.com>2023-10-22 20:58:52 (GMT)
committerGitHub <noreply@github.com>2023-10-22 20:58:52 (GMT)
commit88bac5d5044e577825db1f9367af908dc9a3ad82 (patch)
tree651e0d2d0aec6eb5be5f1a00f36c7d79af8141e9 /configure.ac
parent767f416feb551f495bacfff1e9ba1e6672c2f24e (diff)
downloadcpython-88bac5d5044e577825db1f9367af908dc9a3ad82.zip
cpython-88bac5d5044e577825db1f9367af908dc9a3ad82.tar.gz
cpython-88bac5d5044e577825db1f9367af908dc9a3ad82.tar.bz2
gh-110828: AIX 32bit build needs -latomic for _testcapi module (#110962)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index daa59b2..a4ac589 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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])
@@ -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])