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)
This commit is contained in:
parent
0831c9ff54
commit
238aa3b315
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=552973
@ -102,7 +102,7 @@ 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
|
||||
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 \
|
||||
|
Loading…
Reference in New Issue
Block a user