git: 127ab8c82443 - main - emulators/qemu50: fix build on powerpc
Piotr Kubaj
pkubaj at FreeBSD.org
Sun Sep 12 21:12:42 UTC 2021
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=127ab8c8244385e5929db5fed4aecaf966a612cd
commit 127ab8c8244385e5929db5fed4aecaf966a612cd
Author: Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-09-12 21:06:04 +0000
Commit: Piotr Kubaj <pkubaj at FreeBSD.org>
CommitDate: 2021-09-12 21:06:04 +0000
emulators/qemu50: fix build on powerpc
Same fix as other qemu ports + clang goes into infinite loop, so use GCC.
---
emulators/qemu50/Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/emulators/qemu50/Makefile b/emulators/qemu50/Makefile
index ccbf2d780e86..b6ffc1bfc1f7 100644
--- a/emulators/qemu50/Makefile
+++ b/emulators/qemu50/Makefile
@@ -101,7 +101,8 @@ PORTDOCS= docs index.html interop/.buildinfo interop/* qemu-ga-ref.html qemu-ga-
WITHOUT_CPU_CFLAGS=yes #to avoid problems with register allocation
CFLAGS:= ${CFLAGS:C/-fno-tree-vrp//}
-CFLAGS_amd64+= -fPIC
+CFLAGS_amd64= -fPIC
+CFLAGS_powerpc= -D_CALL_SYSV
CONFIGURE_ARGS= --localstatedir=/var \
--extra-ldflags=-L\"${LOCALBASE}/lib\" --enable-debug \
--prefix=${PREFIX} --cc=${CC} --enable-netmap --enable-docs --disable-kvm \
@@ -122,6 +123,7 @@ MAKE_ARGS+= ARCH=x86_64
.if ${ARCH} == "powerpc"
MAKE_ARGS+= ARCH=ppc
+USE_GCC= yes
.endif
.if ${ARCH} == "powerpc64"
More information about the dev-commits-ports-all
mailing list