Well, I did compiler Python-2.7.11 earlier, but that was with configure-option '--disable-shared'.
Now I try to compile it with '--enable-shared'.
It stops when it tries to create libpython2.7.so: for some reason it uses the following option:
-Wl,-bI:./Modules/python.exp
In the previous version, there used to be such a file, it contained the symbols exported by the main executable.
Also it there is this bit:
-Wl,-hlibpython2.7.so -- this means nothing to the AIX-linker.
Also the -rpath is wrong, too:
-rpath /usr/local/lib64/python2.7/lib-dynload should be:
-rpath /usr/local/lib64/
Edit: There is symbol
BLDSHARED in Makefile, it is used when linking libpython2.7.so
and when linking modules. Problem is, they should go into different places: /usr/local/lib/libpython2.7.so vs /usr/local/lib/python2.7/lib-dynload/
Edit: so for the moment, I add this to my compile-script:
Code:
sed_repl $'s;^\t\t''$(BLDSHARED);aix-libtool --mode=link $(CC) -rpath /usr/local/lib64;
s;-Wl,-h$(INSTSONAME);;
' Makefile
PS: here's some random thoughts regarding
linking/compiling in AIX