From eb62357a2e8c18fc014e9e977acf1e2026e5d9cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Mon, 12 Mar 2007 10:50:39 +0000 Subject: [PATCH] Bug #1675511: Use -Kpic instead of -xcode=pic32 on Solaris/x86. --- Misc/NEWS | 2 ++ configure | 10 ++++++---- configure.in | 8 +++++--- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/Misc/NEWS b/Misc/NEWS index 24d7a1433bf..f3785fb2562 100644 --- 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 diff --git a/configure b/configure index 9065cb97121..73acf5bc76a 100755 --- 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"; diff --git a/configure.in b/configure.in index 2f4292d3f72..66ef840910f 100644 --- a/configure.in +++ b/configure.in @@ -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";