Obsolete VTE pre-2.91 ABI
[oi-userland.git] / components / python / python27 / patches / 13-pic-compile.patch
blob45a402fa259a34bd5fe195f4fd89896cbd9b0e8a
1 --- Python-2.7.6/Lib/distutils/sysconfig.py.~1~ 2013-11-09 23:36:40.000000000 -0800
2 +++ Python-2.7.6/Lib/distutils/sysconfig.py 2014-05-14 13:33:21.453593946 -0700
3 @@ -208,6 +208,15 @@
4 else:
5 archiver = ar + ' ' + ar_flags
7 + # Force PIC compilation. Determine if GNU compiler or otherwise
8 + # and set the PIC flag(s) accordingly. Defaults to Studio compiler.
9 + out = os.popen(cc + ' --version 2>/dev/null', 'r')
10 + out_string = out.read()
11 + out.close()
12 + result = re.search(' (\d+\.\d+(\.\d+)*)', out_string)
13 + kpic_flags = "-fPIC -DPIC" if result else "-KPIC -DPIC"
14 + cflags += ' ' + kpic_flags
16 cc_cmd = cc + ' ' + cflags
17 compiler.set_executables(
18 preprocessor=cpp,