Re: libpython2.5.a not true static lib
Re: libpython2.5.a not true static lib
- Subject: Re: libpython2.5.a not true static lib
- From: Jean-Daniel Dupas <email@hidden>
- Date: Mon, 16 Mar 2009 16:57:32 +0100
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.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden