[PATCH xserver] configure.ac: Keep environment CFLAGS when testing

Adam Jackson ajax at nwnk.net
Mon Apr 25 19:15:04 UTC 2016


On Mon, 2016-04-25 at 15:31 +0100, Emil Velikov wrote:
> On 23 March 2016 at 04:47, Alexandre Courbot <acourbot at nvidia.com> wrote:
> > 
> > DRI2 detection could fail if configure is invoked with a sysroot passed
> > as CFLAGS. Ideally configure should invoke gcc with the sysroot argument
> > passed to the configure script, but for some reason this is not done by
> > AC_COMPILE_IFELSE.
> > 
> > Fix this by ensuring CFLAGS are preserved when checking for stuff.
> > 
> > Signed-off-by: Alexandre Courbot <acourbot at nvidia.com>
> Nice one Alexandre. In practise one should honour the user provided
> CFLAGS regardless of what they are needed for.
> Props to going through and fixing all the cases !
> 
> Reviewed-by: Emil Velikov <emil.velikov at collabora.com>

remote: I: patch #78113 updated using rev 4cc32880737c2d3e568fdb4867b2dba10fb3998a.
remote: I: 1 patch(es) updated to state Accepted.
To ssh://git.freedesktop.org/git/xorg/xserver
   16e4bce..4cc3288  master -> master

- ajax


More information about the xorg-devel mailing list