components/python/python27/patches/11-symbolic.patch
changeset 634 bd9c94f9f6e0
equal deleted inserted replaced
633:29eebbeefc09 634:bd9c94f9f6e0
       
     1 The use of -Bsymbolic here is not required for a profile-guided build, but
       
     2 provides noticeable performance improvements for Python applications.  This
       
     3 should be an acceptable change as runtime interposition on the Python
       
     4 interpreter library is generally undesirable.
       
     5 --- Python-2.7.1/configure.in.orig	2011-11-07 10:05:49.959873160 -0800
       
     6 +++ Python-2.7.1/configure.in	2011-11-07 10:05:38.932222244 -0800
       
     7 @@ -1812,11 +1812,11 @@
       
     8  	IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
       
     9  	SunOS/5*) 
       
    10  		if test "$GCC" = "yes" ; then
       
    11 -			LDSHARED='$(CC) -shared'
       
    12 -			LDCXXSHARED='$(CXX) -shared'
       
    13 +			LDSHARED='$(CC) -shared -Wl,-Bsymbolic'
       
    14 +			LDCXXSHARED='$(CXX) -shared -Wl,-Bsymbolic'
       
    15  		else
       
    16 -			LDSHARED='$(CC) -G'
       
    17 -			LDCXXSHARED='$(CXX) -G'
       
    18 +			LDSHARED='$(CC) -G -Wl,-Bsymbolic'
       
    19 +			LDCXXSHARED='$(CXX) -G -Wl,-Bsymbolic'
       
    20  		fi ;;
       
    21  	hp*|HP*)
       
    22  		if test "$GCC" = "yes" ; then
       
    23 @@ -2008,7 +2008,7 @@
       
    24  		  *gcc*)
       
    25  		    if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
       
    26  		    then
       
    27 -			LINKFORSHARED="-Xlinker --export-dynamic"
       
    28 +			LINKFORSHARED="-Xlinker --export-dynamic -Xlinker -Bsymbolic"
       
    29  		    fi;;
       
    30  		  esac;;
       
    31  	CYGWIN*)