loader: unconditionally add AM_CPPFLAGS to libloader_la_CPPFLAGS
authorEmil Velikov <emil.l.velikov@gmail.com>
Sun, 22 Nov 2015 22:05:00 +0000 (22:05 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 23 Nov 2015 12:07:50 +0000 (12:07 +0000)
It seems that due to the conditional autotools is getting confused and
forgetting to add AM_CPPFLAGS when building libloader (when
HAVE_DRICOMMON is not set).

Cc: mesa-stable@lists.freedesktop.org
Fixes: 5a79e0a8e37 "automake: loader: rework the CPPFLAGS"
Reported-by: Pali Rohár <pali.rohar@gmail.com>
Tested-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/loader/Makefile.am

index 5021120c96db4608fc00ef6b6b9c99c7374b539c..9ca17540d5473c54af4e16f8e60790f4a0fd6885 100644 (file)
@@ -34,12 +34,12 @@ AM_CPPFLAGS = \
        $(LIBDRM_CFLAGS) \
        $(LIBUDEV_CFLAGS)
 
+libloader_la_CPPFLAGS = $(AM_CPPFLAGS)
 libloader_la_SOURCES = $(LOADER_C_FILES)
 libloader_la_LIBADD =
 
 if HAVE_DRICOMMON
-libloader_la_CPPFLAGS = \
-       $(AM_CPPFLAGS) \
+libloader_la_CPPFLAGS += \
        -I$(top_srcdir)/src/mesa/drivers/dri/common/ \
        -I$(top_builddir)/src/mesa/drivers/dri/common/ \
        -I$(top_srcdir)/src/mesa/ \