Add build support for FreeBSD/PowerPC64 (#12011)

* Add build support for FreeBSD PowerPC64

* Add build support for FreeBSD PowerPC64

* Add build support for FreeBSD PowerPC64
This commit is contained in:
Andreas Rumpf
2019-08-23 18:59:52 +02:00
committed by GitHub
3 changed files with 14 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ Platforms: """
linux: i386;ia64;alpha;amd64;powerpc64;arm;sparc;sparc64;m68k;mips;mipsel;mips64;mips64el;powerpc;powerpc64el;arm64;riscv64
macosx: i386;amd64;powerpc64
solaris: i386;amd64;sparc;sparc64
freebsd: i386;amd64
freebsd: i386;amd64;powerpc64
netbsd: i386;amd64
openbsd: i386;amd64
dragonfly: i386;amd64

View File

@@ -154,7 +154,14 @@ case $ucpu in
fi
mycpu="powerpc64" ;;
*power*|*ppc* )
mycpu="powerpc" ;;
if [ "$myos" = "freebsd" ] ; then
COMP_FLAGS="$COMP_FLAGS -m64"
LINK_FLAGS="$LINK_FLAGS -m64"
mycpu=`uname -p`
else
mycpu="powerpc"
fi
;;
*ia64*)
mycpu="ia64" ;;
*m68k*)

View File

@@ -120,6 +120,11 @@ ifeq ($(ucpu),ppc64)
endif
ifeq ($(ucpu),powerpc)
mycpu = powerpc
ifeq ($(myos),freebsd)
mycpu = $(shell sh -c 'uname -p | tr "[:upper:]" "[:lower:]"')
CFLAGS += -m64
LDFLAGS += -m64
endif
endif
ifeq ($(ucpu),ppc)
mycpu = ppc