commit:     01322765ce0ea72a84f0a4065cbd47e1a750f2c4
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 17 08:44:54 2016 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Sun Jan 17 09:00:28 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01322765

dev-libs/openssl: fix sparc builds (mostly 64-bit)

 dev-libs/openssl/files/gentoo.config-1.0.2 | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/dev-libs/openssl/files/gentoo.config-1.0.2 
b/dev-libs/openssl/files/gentoo.config-1.0.2
index b3f6ced..0528c1c 100755
--- a/dev-libs/openssl/files/gentoo.config-1.0.2
+++ b/dev-libs/openssl/files/gentoo.config-1.0.2
@@ -108,8 +108,13 @@ linux)
        #       sh64*)        machine=elf;;
                sh*b*)        machine="generic32 -DB_ENDIAN";;
                sh*)          machine="generic32 -DL_ENDIAN";;
+               # TODO: Might want to do -mcpu probing like glibc to determine a
+               # better default for sparc-linux-gnu targets.  This logic will
+               # break v7 and older systems when they use it.
                sparc*v7*)    machine="generic32 -DB_ENDIAN";;
-               sparc64*)     machine=sparcv9;;
+               sparc64*)     machine=sparcv9 system=linux64;;
+               sparc*v9*)    machine=sparcv9;;
+               sparc*v8*)    machine=sparcv8;;
                sparc*)       machine=sparcv8;;
                s390x*)       machine=s390x system=linux64;;
                s390*)        machine="generic32 -DB_ENDIAN";;

Reply via email to