add missing part of multilib patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python?expand=0&rev=140
This commit is contained in:
Jan Matejek 2013-05-13 15:28:17 +00:00 committed by Git OBS Bridge
parent e3f7011a45
commit e2d644f110

View File

@ -1,3 +1,49 @@
Index: configure.ac
===================================================================
--- configure.ac.orig 2012-03-16 02:26:39.000000000 +0100
+++ configure.ac 2012-03-28 20:09:13.000000000 +0200
@@ -630,6 +630,41 @@
;;
esac
+AC_SUBST(ARCH)
+AC_MSG_CHECKING(ARCH)
+ARCH=`uname -m`
+case $ARCH in
+i?86) ARCH=i386;;
+esac
+AC_MSG_RESULT($ARCH)
+
+AC_SUBST(LIB)
+AC_MSG_CHECKING(LIB)
+case $ac_sys_system in
+Linux*)
+ # Test if the compiler is 64bit
+ echo 'int i;' > conftest.$ac_ext
+ python_cv_cc_64bit_output=no
+ if AC_TRY_EVAL(ac_compile); then
+ case `/usr/bin/file conftest.$ac_objext` in
+ *"ELF 64"*)
+ python_cv_cc_64bit_output=yes
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+esac
+
+case $ARCH:$python_cv_cc_64bit_output in
+aarch64:yes | ppc64:yes | powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
+ LIB="lib64"
+ ;;
+*:*)
+ LIB="lib"
+ ;;
+esac
+AC_MSG_RESULT($LIB)
AC_SUBST(LIBRARY)
AC_MSG_CHECKING(LIBRARY)
Index: Include/pythonrun.h Index: Include/pythonrun.h
=================================================================== ===================================================================
--- Include/pythonrun.h.orig 2013-05-09 15:56:43.404729874 +0200 --- Include/pythonrun.h.orig 2013-05-09 15:56:43.404729874 +0200