libpython2.5.a not true static lib
libpython2.5.a not true static lib
- Subject: libpython2.5.a not true static lib
- From: Jack Howarth <email@hidden>
- Date: Mon, 16 Mar 2009 11:32:22 -0400
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. Is there any particular reason
why libpython2.5.a can't be built as current ar archive random library
objects rather than with Mach-O dynamically linked shared library objects?
Jack
ps I have a radar bug report submitted asking for libpython2.5.a to be
built properly as a real static library.
_______________________________________________
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