Re: libpython2.5.a not true static lib
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com 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... instead of the expected results seen with /usr/lib/libl.a... Download the python package. http://www.opensource.apple.com/darwinsource/ make And you're done. _______________________________________________ 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... 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 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. Change the Makefile Extra_Configure_Flags by adding this flag '-- enable-static' (not sure this is required though). This email sent to site_archiver@lists.apple.com
participants (1)
-
Jean-Daniel Dupas