Skip to content
Snippets Groups Projects
Commit d07950f7 authored by Reimar Döffinger's avatar Reimar Döffinger
Browse files

Autodetect PowerPC vs. PowerPC64.

This is the same code as for x86_64.
This is necessary because uname returns PPC64 if the hardware
is 64 bit, however the userland can still be fully 32 bit.
In that case FFmpeg fails to compile because some macros in the
asm code are set up incorrectly.
For details see https://bugs.gentoo.org/show_bug.cgi?id=341235



Signed-off-by: default avatarReimar Döffinger <Reimar.Doeffinger@gmx.de>
parent 177aec12
No related branches found
No related tags found
No related merge requests found
...@@ -2188,13 +2188,9 @@ case "$arch" in ...@@ -2188,13 +2188,9 @@ case "$arch" in
arch="parisc" arch="parisc"
subarch="parisc64" subarch="parisc64"
;; ;;
"Power Macintosh"|ppc|powerpc) "Power Macintosh"|ppc|powerpc|ppc64|powerpc64)
arch="ppc" arch="ppc"
;; ;;
ppc64|powerpc64)
arch="ppc"
subarch="ppc64"
;;
s390|s390x) s390|s390x)
arch="s390" arch="s390"
;; ;;
...@@ -2392,6 +2388,11 @@ EOF ...@@ -2392,6 +2388,11 @@ EOF
spic=$shared spic=$shared
fi fi
;; ;;
ppc)
check_cc <<EOF && subarch="ppc64"
int test[(int)sizeof(char*) - 7];
EOF
;;
esac esac
enable $subarch enable $subarch
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment