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.6.4/configure.in.old Wed Nov 2 15:49:33 2011
6 +++ Python-2.6.4/configure.in Wed Nov 2 15:58:07 2011
7 @@ -1712,8 +1712,8 @@
8 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
9 SunOS/5*)
10 if test "$GCC" = "yes"
11 - then LDSHARED='$(CC) -shared'
12 - else LDSHARED='$(CC) -G';
13 + then LDSHARED='$(CC) -shared -Wl,-Bsymbolic'
14 + else LDSHARED='$(CC) -G -Wl,-Bsymbolic';
15 fi ;;
16 hp*|HP*)
17 if test "$GCC" = "yes"
18 @@ -1882,7 +1882,7 @@
19 *gcc*)
20 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
21 then
22 - LINKFORSHARED="-Xlinker --export-dynamic"
23 + LINKFORSHARED="-Xlinker --export-dynamic -Xlinker -Bsymbolic"
24 fi;;
25 esac;;
26 CYGWIN*)