]> granicus.if.org Git - python/commitdiff
Bug #1675511: Use -Kpic instead of -xcode=pic32 on Solaris/x86.
authorMartin v. Löwis <martin@v.loewis.de>
Mon, 12 Mar 2007 10:50:39 +0000 (10:50 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Mon, 12 Mar 2007 10:50:39 +0000 (10:50 +0000)
Misc/NEWS
configure
configure.in

index 24d7a1433bfb2d62efde34a25c375ecabee7d0a7..f3785fb2562611c78ebff65a520e742159870b81 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -619,6 +619,8 @@ Tools/Demos
 Build
 -----
 
+- Bug #1675511: Use -Kpic instead of -xcode=pic32 on Solaris/x86.
+
 - Disable _XOPEN_SOURCE on NetBSD 1.x.
 
 - configure now checks whether gcc supports the PyArg_ParseTuple format
index 9065cb97121f580da46872a23f21591968d7ee4d..73acf5bc76ab8ce4454b45187c6e62c8e157fe27 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 53508 .
+# From configure.in Revision: 53826 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.59 for python 2.6.
 #
@@ -11623,9 +11623,11 @@ if test -z "$CCSHARED"
 then
        case $ac_sys_system/$ac_sys_release in
        SunOS*) if test "$GCC" = yes;
-               then CCSHARED="-fPIC";
-               else CCSHARED="-xcode=pic32";
-               fi;;
+               then CCSHARED="-fPIC";
+               elif test `uname -p` = sparc;
+               then CCSHARED="-xcode=pic32";
+               else CCSHARED="-Kpic";
+               fi;;
        hp*|HP*) if test "$GCC" = yes;
                 then CCSHARED="-fPIC";
                 else CCSHARED="+z";
index 2f4292d3f7273b15e0a7defe255517de83da23eb..66ef840910fb3e7caeb1c81d2bc9e5dc4ce2ee32 100644 (file)
@@ -1571,9 +1571,11 @@ if test -z "$CCSHARED"
 then
        case $ac_sys_system/$ac_sys_release in
        SunOS*) if test "$GCC" = yes;
-               then CCSHARED="-fPIC";
-               else CCSHARED="-xcode=pic32";
-               fi;;
+               then CCSHARED="-fPIC";
+               elif test `uname -p` = sparc;
+               then CCSHARED="-xcode=pic32";
+               else CCSHARED="-Kpic";
+               fi;;
        hp*|HP*) if test "$GCC" = yes;
                 then CCSHARED="-fPIC";
                 else CCSHARED="+z";