When -lutil is added to XDM_LIBS, the PKG_CHECK_MODULES(XDM, ...) ends up blowing it away. I fixed it using the attached patch to instead call -lutil XDM_OS_LIBS and then add the XDM_OS_LIBS to XDM_LIBS later.
Created attachment 3858 [details] [review] fix xdm build on FreeBSD
Comment on attachment 3858 [details] [review] fix xdm build on FreeBSD approved, please commit.
Committed.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.