5de29b
# commit 8f9ebb08af1368962d9f24c4cfacb55cf8eee560
5de29b
# Author: Alan Modra <amodra@gmail.com>
5de29b
# Date:   Thu Oct 3 14:03:03 2013 +0930
5de29b
# 
5de29b
#     PowerPC LE configury
5de29b
#     http://sourceware.org/ml/libc-alpha/2013-08/msg00096.html
5de29b
#     
5de29b
#     This adds the basic configury bits for powerpc64le and powerpcle.
5de29b
#     
5de29b
#         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
5de29b
#         * configure: Regenerate.
5de29b
#         * nptl/shlib-versions: Powerpc*le starts at 2.18.
5de29b
#         * shlib-versions: Likewise.
5de29b
# 
5de29b
# commit 0ff8246327401ae8779e2697d5c7348611cdbf8a
5de29b
# Author: Adhemerval Zanella <azanella@linux.vnet.ibm.com>
5de29b
# Date:   Tue Feb 4 09:49:08 2014 -0200
5de29b
# 
5de29b
#     PowerPC: Change powerpc64le start ABI to 2.17.
5de29b
# 
12745e
diff -urN glibc-2.17-c758a686/configure glibc-2.17-c758a686/configure
12745e
--- glibc-2.17-c758a686/configure	2014-05-26 19:52:31.000000000 -0500
12745e
+++ glibc-2.17-c758a686/configure	2014-05-26 19:54:13.000000000 -0500
5de29b
@@ -4195,8 +4195,8 @@
5de29b
 # base_machine, we don't change it.
5de29b
 test -n "$base_machine" || case "$machine" in
5de29b
 i[34567]86)	base_machine=i386 machine=i386/$machine ;;
5de29b
-powerpc)	base_machine=powerpc machine=powerpc/powerpc32 ;;
5de29b
-powerpc64)	base_machine=powerpc machine=powerpc/powerpc64 ;;
5de29b
+powerpc64*)	base_machine=powerpc machine=powerpc/powerpc64 ;;
5de29b
+powerpc*)	base_machine=powerpc machine=powerpc/powerpc32 ;;
5de29b
 s390)           base_machine=s390 machine=s390/s390-32 ;;
5de29b
 s390x)          base_machine=s390 machine=s390/s390-64 ;;
5de29b
 sh3*)		base_machine=sh machine=sh/sh3 ;;
12745e
diff -urN glibc-2.17-c758a686/configure.in glibc-2.17-c758a686/configure.in
12745e
--- glibc-2.17-c758a686/configure.in	2014-05-26 19:52:30.000000000 -0500
12745e
+++ glibc-2.17-c758a686/configure.in	2014-05-26 19:54:45.000000000 -0500
5de29b
@@ -549,8 +549,8 @@
5de29b
 # base_machine, we don't change it.
5de29b
 test -n "$base_machine" || case "$machine" in
5de29b
 i[34567]86)	base_machine=i386 machine=i386/$machine ;;
5de29b
-powerpc)	base_machine=powerpc machine=powerpc/powerpc32 ;;
5de29b
-powerpc64)	base_machine=powerpc machine=powerpc/powerpc64 ;;
5de29b
+powerpc64*)	base_machine=powerpc machine=powerpc/powerpc64 ;;
5de29b
+powerpc*)	base_machine=powerpc machine=powerpc/powerpc32 ;;
5de29b
 s390)           base_machine=s390 machine=s390/s390-32 ;;
5de29b
 s390x)          base_machine=s390 machine=s390/s390-64 ;;
5de29b
 sh3*)		base_machine=sh machine=sh/sh3 ;;
12745e
diff -urN glibc-2.17-c758a686/nptl/shlib-versions glibc-2.17-c758a686/nptl/shlib-versions
12745e
--- glibc-2.17-c758a686/nptl/shlib-versions	2014-05-26 19:52:31.000000000 -0500
12745e
+++ glibc-2.17-c758a686/nptl/shlib-versions	2014-05-26 19:53:31.000000000 -0500
5de29b
@@ -2,4 +2,5 @@
5de29b
 sh.*-.*-linux.*		libpthread=0		GLIBC_2.2
5de29b
 s390x-.*-linux.*	libpthread=0		GLIBC_2.2
5de29b
 powerpc64-.*-linux.*	libpthread=0		GLIBC_2.3
5de29b
+powerpc.*le-.*-linux.*	libpthread=0		GLIBC_2.17
5de29b
 .*-.*-linux.*		libpthread=0
12745e
diff -urN glibc-2.17-c758a686/shlib-versions glibc-2.17-c758a686/shlib-versions
12745e
--- glibc-2.17-c758a686/shlib-versions	2014-05-26 19:52:31.000000000 -0500
12745e
+++ glibc-2.17-c758a686/shlib-versions	2014-05-26 19:53:31.000000000 -0500
5de29b
@@ -23,6 +23,7 @@
5de29b
 
5de29b
 s390x-.*-linux.*        DEFAULT			GLIBC_2.2
5de29b
 powerpc64-.*-linux.*	DEFAULT			GLIBC_2.3
5de29b
+powerpc.*le-.*-linux.*	DEFAULT			GLIBC_2.17
5de29b
 .*-.*-gnu-gnu.*		DEFAULT			GLIBC_2.2.6
5de29b
 
5de29b
 # Configuration		ABI			Identifier for ABI data files