]> 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:51 +0000 (10:50 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Mon, 12 Mar 2007 10:50:51 +0000 (10:50 +0000)
Misc/NEWS
configure
configure.in

index 97c21461e7941ca56e8f53c18a86e6c9630f9aa2..dc981ffe13188eecf56635d4ba2dd37cea79ac53 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -378,6 +378,8 @@ Tests
 Build
 -----
 
+- Bug #1675511: Use -Kpic instead of -xcode=pic32 on Solaris/x86.
+
 - Disable _XOPEN_SOURCE on NetBSD 1.x.
 
 - Bug #1578513: Cross compilation was broken by a change to configure.
index 3f8459de478a07db11685910002af5e66ecf2096..70e0e684dcb076c4f28db2c585d60d479bdfa98d 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 52457 .
+# From configure.in Revision: 52844 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.59 for python 2.5.
 #
@@ -11085,9 +11085,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 9d446c6bf2a2e6bddd94ec98a546ee93d762f1d3..16d6ff157b5d97dae358e4ab291b5825d9f72e49 100644 (file)
@@ -1544,9 +1544,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";