Marc-Andre Lemburg added the comment:

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"

----------
nosy: +lemburg

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18235>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to