components/python/python26/patches/Python26-24-symbolic.patch
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Mon, 11 Mar 2013 10:38:09 -0700
branchs11-update
changeset 2520 ceec631e74d1
parent 634 bd9c94f9f6e0
permissions -rw-r--r--
Close of build 10.
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.6.4/configure.in.old	Wed Nov  2 15:49:33 2011
+++ Python-2.6.4/configure.in	Wed Nov  2 15:58:07 2011
@@ -1712,8 +1712,8 @@
 	IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
 	SunOS/5*) 
 		if test "$GCC" = "yes"
-		then LDSHARED='$(CC) -shared'
-		else LDSHARED='$(CC) -G';
+		then LDSHARED='$(CC) -shared -Wl,-Bsymbolic'
+		else LDSHARED='$(CC) -G -Wl,-Bsymbolic';
 		fi ;;
 	hp*|HP*)
 		if test "$GCC" = "yes"
@@ -1882,7 +1882,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*)