Reid Madsen <reid.mad...@tektronix.com> added the comment: Python support,
This issue with not being able to build on Solaris 9 is easily fixed. I have attached a patch with the fix for Python 2.7. When linking with libpython-2.7.a, the linker will only extract modules that satisfy dependencies emanating from python.o. There may be objects in the archive that are not needed to satisfy any of these dependencies and those WILL NOT be included in the executable. The GNU linker supports two options that can be use to force the linker to include ALL objects in the archive. Thus if you change the python link line from: $(BUILDPYTHON): Modules/python.o $(LIBRARY) $(LDLIBRARY) $(LINKCC) $(LDFLAGS) $(LINKFORSHARED) -o $@ \ Modules/python.o \ $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST) to: $(BUILDPYTHON): Modules/python.o $(LIBRARY) $(LDLIBRARY) $(LINKCC) $(LDFLAGS) $(LINKFORSHARED) -o $@ \ Modules/python.o \ -Wl,--whole-archive $(BLDLIBRARY) -Wl,--no-whole-archive \ $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST) Then the problem is resolved. For compiler toolchains that do not support the --whole-library option, you can change the link to link with the individual .o files and not use the archive library at all. Let me know if I can be of any more help. Reid Madsen ---------- keywords: +patch nosy: +srmadsen Added file: http://bugs.python.org/file20339/Python-2.7.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9742> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com