tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: emulators/qemu fails



On Fri, 5 Aug 2022 20:50:37 +0000 (UTC)
John Klos <john%ziaspace.com@localhost> wrote:

> fdmon-epoll.c:(.text+0x4c): undefined reference to `epoll_wait'
> Any ideas?

Either of these solutions should work, I think. (Untested.)
Any preferences? There is no configure knob for epoll in qemu ...
I wonder if we should make epoll-shim not buildlink it's
headers by default?

--8<--

pre-configure: disable-epoll-shim
.PHONY: disable-epoll-shim
disable-epoll-shim:
	${RM} -rf ${BUILDLINK_DIR}/include/epoll-shim

--8<--

.if ${OPSYS} != "Linux"
SUBST_CLASSES+=		no-epoll
SUBST_STAGE.no-epoll=	pre-configure
SUBST_MESSAGE.no-epoll=	disable epoll
SUBST_FILES.no-epoll+=	meson.build
SUBST_SED.no-epoll+=	-e 's,sys/epoll.h,&_disabled,'
.endif

--8<--


Home | Main Index | Thread Index | Old Index