components/python/python27/patches/13-pic-compile.patch
changeset 1914 00e8dbcb9b1e
parent 756 3602fbc18c59
child 1954 32663e59626d
equal deleted inserted replaced
1913:bf893655bc39 1914:00e8dbcb9b1e
     1 --- Python-2.7.1/Lib/distutils/sysconfig.py.orig	2012-03-26 09:24:18.614278009 -0700
     1 --- Python-2.7.6/Lib/distutils/sysconfig.py.~1~	2013-11-09 23:36:40.000000000 -0800
     2 +++ Python-2.7.1/Lib/distutils/sysconfig.py	2012-03-27 09:58:03.446132438 -0700
     2 +++ Python-2.7.6/Lib/distutils/sysconfig.py	2014-05-14 13:33:21.453593946 -0700
     3 @@ -173,6 +173,15 @@
     3 @@ -208,6 +208,15 @@
     4              cflags = cflags + ' ' + os.environ['CPPFLAGS']
     4          else:
     5              ldshared = ldshared + ' ' + os.environ['CPPFLAGS']
     5              archiver = ar + ' ' + ar_flags
     6  
     6  
     7 +        # Force PIC compilation. Determine if GNU compiler or otherwise
     7 +        # Force PIC compilation. Determine if GNU compiler or otherwise
     8 +        # and set the PIC flag(s) accordingly. Defaults to Studio compiler.
     8 +        # and set the PIC flag(s) accordingly. Defaults to Studio compiler.
     9 +        out = os.popen(cc + ' --version 2>/dev/null', 'r')
     9 +        out = os.popen(cc + ' --version 2>/dev/null', 'r')
    10 +        out_string = out.read()
    10 +        out_string = out.read()