patches/Python-03-distutils-pycc.diff
author rohinis
Tue, 29 Nov 2011 17:32:55 +0000
branchs11express-2010-11
changeset 22234 c23e64da3e06
parent 8162 ab63e00d2219
permissions -rw-r--r--
2011-11-29 Rohini S <[email protected]> * patches/Python26-22-audio.diff: Fixes CVE-2010-1634 * specs/SUNWPython26.spec: Fixes CR 7085446
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8162
ab63e00d2219 2006-09-18 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
diff changeset
     1
--- Python-2.4.2/Lib/distutils/sysconfig.py	2005-01-06 15:16:03.000000000 -0800
ab63e00d2219 2006-09-18 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
diff changeset
     2
+++ Python-2.4.2-new/Lib/distutils/sysconfig.py	2006-08-24 05:33:41.133317000 -0700
ab63e00d2219 2006-09-18 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
diff changeset
     3
@@ -149,16 +149,10 @@
ab63e00d2219 2006-09-18 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
diff changeset
     4
         (cc, cxx, opt, basecflags, ccshared, ldshared, so_ext) = \
ab63e00d2219 2006-09-18 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
diff changeset
     5
             get_config_vars('CC', 'CXX', 'OPT', 'BASECFLAGS', 'CCSHARED', 'LDSHARED', 'SO')
ab63e00d2219 2006-09-18 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
diff changeset
     6
 
ab63e00d2219 2006-09-18 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
diff changeset
     7
-        if os.environ.has_key('CC'):
ab63e00d2219 2006-09-18 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
diff changeset
     8
-            cc = os.environ['CC']
ab63e00d2219 2006-09-18 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
diff changeset
     9
-        if os.environ.has_key('CXX'):
ab63e00d2219 2006-09-18 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
diff changeset
    10
-            cxx = os.environ['CXX']
ab63e00d2219 2006-09-18 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
diff changeset
    11
-        if os.environ.has_key('LDSHARED'):
ab63e00d2219 2006-09-18 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
diff changeset
    12
-            ldshared = os.environ['LDSHARED']
ab63e00d2219 2006-09-18 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
diff changeset
    13
-        if os.environ.has_key('CPP'):
ab63e00d2219 2006-09-18 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
diff changeset
    14
-            cpp = os.environ['CPP']
ab63e00d2219 2006-09-18 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
diff changeset
    15
-        else:
ab63e00d2219 2006-09-18 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
diff changeset
    16
-            cpp = cc + " -E"           # not always
ab63e00d2219 2006-09-18 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
diff changeset
    17
+        # On Solaris, we must always use pycc/pyCC, which will then look up
ab63e00d2219 2006-09-18 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
diff changeset
    18
+        # $CC and $CXX
ab63e00d2219 2006-09-18 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
diff changeset
    19
+        cpp = cc + " -E"
ab63e00d2219 2006-09-18 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
diff changeset
    20
+
ab63e00d2219 2006-09-18 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
diff changeset
    21
         if os.environ.has_key('LDFLAGS'):
ab63e00d2219 2006-09-18 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
diff changeset
    22
             ldshared = ldshared + ' ' + os.environ['LDFLAGS']
ab63e00d2219 2006-09-18 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
diff changeset
    23
         if basecflags: