svn commit: r552973 - head/emulators/qemu50
Piotr Kubaj
pkubaj at FreeBSD.org
Thu Oct 22 13:20:57 UTC 2020
Author: pkubaj
Date: Thu Oct 22 13:20:56 2020
New Revision: 552973
URL: https://svnweb.freebsd.org/changeset/ports/552973
Log:
emulators/qemu50: fix build on GCC architectures
Adding -L/usr/lib make gcc from ports prefer /usr/lib instead of its own /usr/local/lib/gcc9, which makes build fail:
/usr/local/bin/ld: accel/tcg/tcg-runtime.o: in function `clrsb32':
/wrkdirs/usr/ports/emulators/qemu50/work/qemu-5.0.0/include/qemu/host-utils.h:211: undefined reference to `__clrsbdi2'
Tested for no breakage on 12.1/i386, 12.2/amd64 and 13.0/powerpc64.
MFH: 2020Q4 (fix build blanket)
Modified:
head/emulators/qemu50/Makefile
Modified: head/emulators/qemu50/Makefile
==============================================================================
--- head/emulators/qemu50/Makefile Thu Oct 22 13:18:58 2020 (r552972)
+++ head/emulators/qemu50/Makefile Thu Oct 22 13:20:56 2020 (r552973)
@@ -102,7 +102,7 @@ PORTDOCS= docs index.html interop/.buildinfo interop/*
WITHOUT_CPU_CFLAGS=yes #to avoid problems with register allocation
CFLAGS:= ${CFLAGS:C/-fno-tree-vrp//}
CFLAGS_amd64+= -fPIC
-CONFIGURE_ARGS= --localstatedir=/var --extra-ldflags=-L\"/usr/lib\" \
+CONFIGURE_ARGS= --localstatedir=/var \
--extra-ldflags=-L\"${LOCALBASE}/lib\" --enable-debug \
--prefix=${PREFIX} --cc=${CC} --enable-netmap --enable-docs --disable-kvm \
--disable-linux-user --disable-linux-aio --disable-xen \
More information about the svn-ports-head
mailing list