Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Sep 2021 21:12:41 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 127ab8c82443 - main - emulators/qemu50: fix build on powerpc
Message-ID:  <202109122112.18CLCfZO047497@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=127ab8c8244385e5929db5fed4aecaf966a612cd

commit 127ab8c8244385e5929db5fed4aecaf966a612cd
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-09-12 21:06:04 +0000
Commit:     Piotr Kubaj <pkubaj@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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109122112.18CLCfZO047497>