When trying to build mesa with DRI support on Gentoo/FreeBSD, I noticed that the OPT_FLAGS, WARN_FLAGS, PIC_FLAGS, ASM_FLAGS and X11_INCLUDES variables aren't being included in CFLAGS properly, which prevents it from building correctly. Also, there is an override (in freebsd-dri) to the 'default' config in which GLW_LIB_DEPS has a dependency on -lXm thus requiring a motif library installed. Is this intentional, or a bug? The attached patch changes this behaviour to let it build correctly. Also, i'm attaching a tiny patch to 'src/mesa/drivers/dri/Makefile.template' that makes it a bit more portable regarding output redirection.
Created attachment 7061 [details] [review] 6.5-fbsd-configs-fix.patch This patch is just a copy from 'freebsd' C{XX}FLAGS to 'freebsd-dri'.
Created attachment 7062 [details] [review] 6.5-freebsd-dri.patch Sorry, wrong file attached before.
Created attachment 7063 [details] [review] 6.5-redirect-fix.patch Replaces >& for a more portable 2>&1 output redirection.
The patch to configs/freebsd-dri doesn't apply cleanly to Mesa 6.5.1 (just released). Could you update the patch (if it's actually still needed)? I checked in the redirection change.
Created attachment 7066 [details] [review] 6.5.1-freebsd-dri.patch This is the updated patch for Mesa-6.5.1.
Patch appled. Thanks.
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.