Issue #18235: Fix the sysconfig variables LDSHARED and BLDSHARED under AIX.
Patch by David Edelsohn.
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
index efc9a84..776b2f6 100644
--- a/Lib/sysconfig.py
+++ b/Lib/sysconfig.py
@@ -368,7 +368,7 @@
     # -- these paths are relative to the Python source, but when installed
     # the scripts are in another directory.
     if _PYTHON_BUILD:
-        vars['LDSHARED'] = vars['BLDSHARED']
+        vars['BLDSHARED'] = vars['LDSHARED']
 
     # There's a chicken-and-egg situation on OS X with regards to the
     # _sysconfigdata module after the changes introduced by #15298:
diff --git a/Misc/NEWS b/Misc/NEWS
index be4635b..5d4ac75 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -62,6 +62,9 @@
 Library
 -------
 
+- Issue #18235: Fix the sysconfig variables LDSHARED and BLDSHARED under AIX.
+  Patch by David Edelsohn.
+
 - Issue #18606: Add the new "statistics" module (PEP 450).  Contributed
   by Steven D'Aprano.