/usr/X11R7/lib/pkgconfig/gl.pc file contains:
....
Libs: -Wl,-rpath,${libdir} -L${libdir} -l@GL_PKGCONF_LIB@
....There are quite a few packages which fail with the default pkgsrc setup because of that. Perhaps the variable GL_PKGCONF_LIB should be defined somewhere? I guess this depends on whether the built-in or modular Xorg? After every system upgrade I manually replace @GL_PKGCONF_LIB@ with GL and all is well. -- ----
