This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ned.deily
Recipients eric.araujo, ned.deily, ronaldoussoren, tarek, toggtc
Date 2012-01-30.01:58:51
SpamBayes Score 2.5370206e-05
Marked as misclassified No
Message-id <1327888732.58.0.664618905142.issue13901@psf.upfronthosting.co.za>
In-reply-to
Content
On OS X, the linker includes in executables the absolute path to referenced shared libraries and normally --enable-shared builds are only usable from their installed location, i.e. after doing 'make install'.  RUNSHARED is defined as it is on OS X so that during the build of the standard library, the newly built interpreter uses its shared library before being installed.  After a 'make install', RUNSHARED should not be used on OS X; the shared library will always be found via the absolute path linked in the executable.  So I think the right solution for the problem here is to bypass the fixup code, so something like this (note the current 2.7.x is now similar to 3.2.x and differs from 2.7.2):


diff --git a/Lib/distutils/tests/support.py b/Lib/distutils/tests/support.py
--- a/Lib/distutils/tests/support.py
+++ b/Lib/distutils/tests/support.py
@@ -211,5 +211,8 @@
         if runshared is None:
             cmd.library_dirs = ['.']
         else:
-            name, equals, value = runshared.partition('=')
-            cmd.library_dirs = value.split(os.pathsep)
+            if sys.platform == 'darwin':
+                cmd.library_dirs = []
+            else:
+                name, equals, value = runshared.partition('=')
+                cmd.library_dirs = value.split(os.pathsep)
History
Date User Action Args
2012-01-30 01:58:52ned.deilysetrecipients: + ned.deily, ronaldoussoren, tarek, eric.araujo, toggtc
2012-01-30 01:58:52ned.deilysetmessageid: <1327888732.58.0.664618905142.issue13901@psf.upfronthosting.co.za>
2012-01-30 01:58:51ned.deilylinkissue13901 messages
2012-01-30 01:58:51ned.deilycreate