We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e501377 commit 4e13c0eCopy full SHA for 4e13c0e
newsfragments/4073.fixed.md
@@ -0,0 +1 @@
1
+fixes undefined symbol errors when building extension module on AIX by linking `libpython`
pyo3-build-config/src/impl_.rs
@@ -775,6 +775,8 @@ pub fn is_linking_libpython() -> bool {
775
/// Must be called from a PyO3 crate build script.
776
fn is_linking_libpython_for_target(target: &Triple) -> bool {
777
target.operating_system == OperatingSystem::Windows
778
+ // See https://github.com/PyO3/pyo3/issues/4068#issuecomment-2051159852
779
+ || target.operating_system == OperatingSystem::Aix
780
|| target.environment == Environment::Android
781
|| target.environment == Environment::Androideabi
782
|| !is_extension_module()
0 commit comments