Date: Tue, 30 Jun 2009 21:18:17 +0300 From: Andriy Gapon <avg@icyb.net.ua> To: freebsd-x11@freebsd.org, Robert Noland <rnoland@freebsd.org> Subject: graphics/dri: pkg-config metadata should probably list -pthread in libraries Message-ID: <4A4A56E9.6000009@icyb.net.ua>
next in thread | raw e-mail | index | archive | help
Robert, I think that the following should not be a port patch but rather should be sent to upstream developers (Mesa) for a discussion. I propose to augment src/mesa/drivers/dri/dri.pc.in with something like the following: Requires.private: @DRI_PC_REQ_PRIV@ Cflags: -I${includedir} +Libs: @GL_PC_LIB_PRIV@ Right now we have: $ pkg-config --libs dri <nothing> But drivers (shared objects) installed by this port are all linked with a thread library. On FreeBSD this means that any executable using (loading) those drivers should also be linked to a threads library. But this is not reflected pkg-config meta-data. As a result, for example, X may be not linked to a threading library resulting in a crash on certain pthread_* calls. -- Andriy Gapon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A4A56E9.6000009>