Message286172
Reading the ticket, it seems that there is some confusion about what LDSHARED and BLDSHARED are used for. BLDSHARED is used to override the LDSHARED value when building libpython and the shared modules (via setup.py).
LDSHARED is what is meant to be used for building shared modules after installation.
This distinction is not being followed by all targets in the Makefile, but is needed in cases where special build tools are necessary, as is the case on AIX.
For the latter, BLDSHARED has to point to the source tree version of those build tools, while LDSHARED has to point to the installed version of these.
On AIX, BLDSHARED should therefore point to the ./Modules/ld_so_aix (or better: the absolute dir of the source tree), while LDSHARED needs to point to the installation target for ld_so_aix, e.g. /usr/local/lib/python2.7/config/ld_so_aix.
So the fix which was already applied to 3.4 is correct for 2.7 as well. The missing part is the fix to the configure script, since in Python 2.7, this still uses relative paths:
BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
instead of the ones from 3.4:
BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:\$(srcdir)/Modules/python.exp"
LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
|
Date |
User |
Action |
Args |
2017-01-24 10:22:08 | lemburg | set | recipients:
+ lemburg, pitrou, larry, eric.araujo, ericvw, haubi, python-dev, martin.panter, pelson, David.Edelsohn, Michael.Felt, aixtools@gmail.com |
2017-01-24 10:22:07 | lemburg | set | messageid: <1485253327.92.0.142922317881.issue18235@psf.upfronthosting.co.za> |
2017-01-24 10:22:07 | lemburg | link | issue18235 messages |
2017-01-24 10:22:07 | lemburg | create | |
|