components/python/python27/patches/11-symbolic.patch
changeset 634 bd9c94f9f6e0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/python27/patches/11-symbolic.patch	Tue Dec 20 17:19:09 2011 -0800
@@ -0,0 +1,31 @@
+The use of -Bsymbolic here is not required for a profile-guided build, but
+provides noticeable performance improvements for Python applications.  This
+should be an acceptable change as runtime interposition on the Python
+interpreter library is generally undesirable.
+--- Python-2.7.1/configure.in.orig	2011-11-07 10:05:49.959873160 -0800
++++ Python-2.7.1/configure.in	2011-11-07 10:05:38.932222244 -0800
[email protected]@ -1812,11 +1812,11 @@
+ 	IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
+ 	SunOS/5*) 
+ 		if test "$GCC" = "yes" ; then
+-			LDSHARED='$(CC) -shared'
+-			LDCXXSHARED='$(CXX) -shared'
++			LDSHARED='$(CC) -shared -Wl,-Bsymbolic'
++			LDCXXSHARED='$(CXX) -shared -Wl,-Bsymbolic'
+ 		else
+-			LDSHARED='$(CC) -G'
+-			LDCXXSHARED='$(CXX) -G'
++			LDSHARED='$(CC) -G -Wl,-Bsymbolic'
++			LDCXXSHARED='$(CXX) -G -Wl,-Bsymbolic'
+ 		fi ;;
+ 	hp*|HP*)
+ 		if test "$GCC" = "yes" ; then
[email protected]@ -2008,7 +2008,7 @@
+ 		  *gcc*)
+ 		    if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
+ 		    then
+-			LINKFORSHARED="-Xlinker --export-dynamic"
++			LINKFORSHARED="-Xlinker --export-dynamic -Xlinker -Bsymbolic"
+ 		    fi;;
+ 		  esac;;
+ 	CYGWIN*)