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 Claudio.Freire
Recipients Claudio.Freire
Date 2013-07-18.17:47:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1374169657.94.0.400718605789.issue18493@psf.upfronthosting.co.za>
In-reply-to
Content
When building with --enable-shared in an environment that already has a python2.7 (and I'd expect the same to happen to 3.x), make profile-opt fails because it attempts to load the existing libpython instead of the just-built one.

run_profile_task should use RUNSHARED. In fact, it builds fine if $(RUNSHARED) is added to that line.

Patch inline below, for 2.7.5:

--- Makefile.pre.in.bk  2013-07-18 17:46:28.671773378 +0000
+++ Makefile.pre.in     2013-07-18 17:46:47.759806100 +0000
@@ -420,7 +420,7 @@
 
 run_profile_task:
        : # FIXME: can't run for a cross build
-       ./$(BUILDPYTHON) $(PROFILE_TASK)
+       $(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK)
 
 build_all_use_profile:
        $(MAKE) all CFLAGS="$(CFLAGS) -fprofile-use"
History
Date User Action Args
2013-07-18 17:47:37Claudio.Freiresetrecipients: + Claudio.Freire
2013-07-18 17:47:37Claudio.Freiresetmessageid: <1374169657.94.0.400718605789.issue18493@psf.upfronthosting.co.za>
2013-07-18 17:47:37Claudio.Freirelinkissue18493 messages
2013-07-18 17:47:37Claudio.Freirecreate