components/python/python27/patches/13-pic-compile.patch
branchs11-update
changeset 3367 ed5024e47b53
parent 756 3602fbc18c59
child 3565 2d729d36ded7
equal deleted inserted replaced
3366:dba288608e69 3367:ed5024e47b53
     1 --- Python-2.7.1/Lib/distutils/sysconfig.py.orig	2012-03-26 09:24:18.614278009 -0700
     1 This patch is a Solaris-specific hack; it will not be submitted upstream.
     2 +++ Python-2.7.1/Lib/distutils/sysconfig.py	2012-03-27 09:58:03.446132438 -0700
     2 
     3 @@ -173,6 +173,15 @@
     3 --- Python-2.7.6/Lib/distutils/sysconfig.py.~1~	2013-11-09 23:36:40.000000000 -0800
     4              cflags = cflags + ' ' + os.environ['CPPFLAGS']
     4 +++ Python-2.7.6/Lib/distutils/sysconfig.py	2014-05-14 13:33:21.453593946 -0700
     5              ldshared = ldshared + ' ' + os.environ['CPPFLAGS']
     5 @@ -208,6 +208,15 @@
       
     6          else:
       
     7              archiver = ar + ' ' + ar_flags
     6  
     8  
     7 +        # Force PIC compilation. Determine if GNU compiler or otherwise
     9 +        # Force PIC compilation. Determine if GNU compiler or otherwise
     8 +        # and set the PIC flag(s) accordingly. Defaults to Studio compiler.
    10 +        # and set the PIC flag(s) accordingly. Defaults to Studio compiler.
     9 +        out = os.popen(cc + ' --version 2>/dev/null', 'r')
    11 +        out = os.popen(cc + ' --version 2>/dev/null', 'r')
    10 +        out_string = out.read()
    12 +        out_string = out.read()