This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Recipients David.Edelsohn, Michael.Felt,, eric.araujo, haubi, larry, martin.panter, pelson, pitrou, python-dev
Date 2016-10-23.19:54:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
The value that works for LDSHARED is the value that LDCXXSHARED has. 
BLDSHARED is also broken (currently).

  'BLDSHARED': './Modules/ld_so_aix xlc_r -bI:./Modules/python.exp 

  'LDCXXSHARED': '/opt/lib/python2.7/config/ld_so_aix xlc_r 

except neither BLDSHARED nor LDCXXSHARED have taken the extra LDFLAG 
that was exported before configure was called (in this case -L/opt/lib)

In short: LDSHARED needs to be a full path, not relative and should 
include -L flags used during the build, if any.

LDCXXSHARED should also add LDFLAGS -L entries (and perhaps, where 
relevant -R flags).

BLDSHARED does not work when "builddir" is . and source_dir is 
../src/python-X.W.Y because Modules/ld_so_aix is not in ".", but is at 

On 15-Oct-16 00:23, Martin Panter wrote:
> Martin Panter added the comment:
> This is my understanding:
> We are talking about the code at <> that switches the values of LDSHARED and/or BLDSHARED.
> Yes, Michael H. was suggesting to both move and change (revert) back to overwriting LDSHARED with the value of BLDSHARED. Since he is moving the code into _init_posix(), which I think only gets called at run time, the state of _PYTHON_BUILD won’t affect the value of LDSHARED saved in the installed config file.
> ----------
> _______________________________________
> Python tracker <>
> <>
> _______________________________________
Date User Action Args
2016-10-23 19:54:19aixtools@gmail.comsetrecipients: +, pitrou, larry, eric.araujo, haubi, python-dev, martin.panter, pelson, David.Edelsohn, Michael.Felt
2016-10-23 19:54:18aixtools@gmail.comlinkissue18235 messages
2016-10-23 19:54:18aixtools@gmail.comcreate