Fix build on FreeBSD/powerpc (#19282)

It's currently misdetected as powerpc64.
This commit is contained in:
pkubaj
2021-12-23 02:52:33 +01:00
committed by GitHub
parent 19898e1225
commit 7a5314c571

View File

@@ -192,8 +192,10 @@ case $ucpu in
mycpu="powerpc64" ;;
*power*|*ppc* )
if [ "$myos" = "freebsd" ] ; then
COMP_FLAGS="$COMP_FLAGS -m64"
LINK_FLAGS="$LINK_FLAGS -m64"
if [ "$ucpu" != "powerpc" ] ; then
COMP_FLAGS="$COMP_FLAGS -m64"
LINK_FLAGS="$LINK_FLAGS -m64"
fi
mycpu=`uname -p`
case $mycpu in
powerpc64le)