Re: libpython2.5.a not true static lib
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com User-agent: Mutt/1.5.18 (2008-05-17) On Mon, Mar 16, 2009 at 04:57:32PM +0100, Jean-Daniel Dupas wrote:
Le 16 mars 09 à 16:32, Jack Howarth a écrit :
Does anyone know why Apple insists in creating a bogus static lib for the system libpython2.5.a? It shows...
file /System/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/config/libpython2.5.a /System/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/config/libpython2.5.a: Mach-O universal binary with 4 architectures /System/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/config/libpython2.5.a (for architecture ppc7400)Mach-O dynamically linked shared library ppc /System/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/config/libpython2.5.a (for architecture ppc64): Mach-O 64- bit dynamically linked shared library ppc64 /System/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/config/libpython2.5.a (for architecture i386): Mach-O dynamically linked shared library i386 /System/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/config/libpython2.5.a (for architecture x86_64):Mach-O 64- bit dynamically linked shared library x86_64
instead of the expected results seen with /usr/lib/libl.a...
file libl.a libl.a: Mach-O universal binary with 4 architectures libl.a (for architecture ppc): current ar archive random library libl.a (for architecture ppc64): current ar archive random library libl.a (for architecture i386): current ar archive random library libl.a (for architecture x86_64): current ar archive random library
This has been hacked around in the past by using the 'ar x' command to convert this 'static' libpython2.5.a into a true static library for linkage directly into shared libraries (such as in xplor-nih). However this hack may not be available to us in the future.
Just in case, rebuilding your own proper static library from the darwin python package is not very hard.
Download the python package.
http://www.opensource.apple.com/darwinsource/
Change the Makefile Extra_Configure_Flags by adding this flag '-- enable-static' (not sure this is required though).
make
And you're done.
Fink builds a normal static lib for their python25 package. However I am trying to get this fixed for those developers who want to build against the system python. Jack _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Jack Howarth