Skip to content

Commit

Permalink
emulators/qemu50: fix build on powerpc
Browse files Browse the repository at this point in the history
Same fix as other qemu ports + clang goes into infinite loop, so use GCC.
  • Loading branch information
pkubaj committed Sep 12, 2021
1 parent cf10de8 commit 127ab8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion emulators/qemu50/Makefile
Expand Up @@ -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 \
Expand All @@ -122,6 +123,7 @@ MAKE_ARGS+= ARCH=x86_64

.if ${ARCH} == "powerpc"
MAKE_ARGS+= ARCH=ppc
USE_GCC= yes
.endif

.if ${ARCH} == "powerpc64"
Expand Down

0 comments on commit 127ab8c

Please sign in to comment.