[PATCH libdrm v2] meson, configure: include config.h automatically

Emil Velikov emil.l.velikov at gmail.com
Tue Mar 20 12:06:25 UTC 2018


On 1 February 2018 at 12:10, Eric Engestrom <eric.engestrom at imgtec.com> wrote:
> This will prevent any more missing `#include "config.h"` bug, at the
> cost of having to recompile some files that didn't need to be when
> changing build options.
>
> Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>
> ---
> v2: forgot to `make clean` when testing autotools...
>     needed to move the CFLAGS line after all compile tests in
>     configure.ac, and `+=` doesn't work, so using `CFLAGS="$CFLAGS foo"`
>     instead. (nothing besides configure.ac changed)
I'm not sure how well this will work with non gcc/clang, yet anyone
using those compilers is welcome to send us a patch ;-)

Reviewed-by: Emil Velikov <emil.velikov at collabora.com>

-Emil


More information about the dri-devel mailing list