Hi Martin, > does it mean that AIX uses *.a extension for shared libraries name?
Yes, sort of. On AIX the correct term is a shared object which can reside inside a library archive (*.a). When linking with the *.a file the binary becomes dependent on the shared objects in the library and the library must be available at runtime. On AIX a shared library is a library (names something.a) which contains one or more shared objects (but it can also contain non- shared objects aka static object files.) You can read more here (which is where I just got my limited knowledge from): http://publib.boulder.ibm.com/infocenter/comphelp/v7v91/index.jsp?topic=%2Fcom.ibm.vacpp7a.doc%2Fgetstart%2Foverview%2Fport_aix_obj_lib.htm > > Also, the produced binary (bootloader) depends on dynamic libraries: > > The bootloader should depend on some standard dynamic libraries. That is > normal. Only the libpython should not be there. Ok. > Is the /opt/freeware/lib/libz.a available by default on every AIX > installation? Not sure, but I guess not. So this also poses problems when moving the produced binary to another machine. Furthermore, I might have the problem (not sure about that) that when building the bootloader with GCC 4.x on one machine it does not run on another machine (incompatible library versions). > If the python library is dynamic library then you could just try the > same approach what's pyinstaller doing for linux: > > Copy the libpython2.6.a to dist folder and update the bootloader to be > also looking for libpython with *.a extension. I had the same thought. Originally (before modifying the bootloader) I simple moved libpython2.6.a to the dist folder and renamed it to libpython2.6.so (or whatever the bootloader asked for), but the bootloader failed to load the library. So I could try to do what you suggest but I am afraid it will not work. But I will give it a try. > Does environment variable LD_LIBRARY_PATH work on AIX? Yes, I believe so. (Had to change it to make some of the tests pass in the test suite for trunk.) /Martin -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyinstaller?hl=en.
