mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
automake: loader: rework the CPPFLAGS
Rather than duplicating things, just use the generic AM_CPPFLAGS. This has the fortunate side-effect of adding VISIBILITY_CFLAGS for the dri3 helper. The latter of which was erroneously exposing some internal symbols. Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reported-by: Kai Wasserbäch <kai@dev.carbon-project.org> Tested-by: Kai Wasserbäch <kai@dev.carbon-project.org> Reviewed-by: Kristian Høgsberg <krh@bitplanet.net> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
99840eb983
commit
5a79e0a8e3
1 changed files with 4 additions and 11 deletions
|
|
@ -25,18 +25,20 @@ EXTRA_DIST = SConscript
|
||||||
|
|
||||||
noinst_LTLIBRARIES = libloader.la libloader_dri3_helper.la
|
noinst_LTLIBRARIES = libloader.la libloader_dri3_helper.la
|
||||||
|
|
||||||
libloader_la_CPPFLAGS = \
|
AM_CPPFLAGS = \
|
||||||
$(DEFINES) \
|
$(DEFINES) \
|
||||||
-I$(top_srcdir)/include \
|
-I$(top_srcdir)/include \
|
||||||
-I$(top_srcdir)/src \
|
-I$(top_srcdir)/src \
|
||||||
$(VISIBILITY_CFLAGS) \
|
$(VISIBILITY_CFLAGS) \
|
||||||
|
$(LIBDRM_CFLAGS) \
|
||||||
$(LIBUDEV_CFLAGS)
|
$(LIBUDEV_CFLAGS)
|
||||||
|
|
||||||
libloader_la_SOURCES = $(LOADER_C_FILES)
|
libloader_la_SOURCES = $(LOADER_C_FILES)
|
||||||
libloader_la_LIBADD =
|
libloader_la_LIBADD =
|
||||||
|
|
||||||
if HAVE_DRICOMMON
|
if HAVE_DRICOMMON
|
||||||
libloader_la_CPPFLAGS += \
|
libloader_la_CPPFLAGS = \
|
||||||
|
$(AM_CPPFLAGS) \
|
||||||
-I$(top_srcdir)/src/mesa/drivers/dri/common/ \
|
-I$(top_srcdir)/src/mesa/drivers/dri/common/ \
|
||||||
-I$(top_builddir)/src/mesa/drivers/dri/common/ \
|
-I$(top_builddir)/src/mesa/drivers/dri/common/ \
|
||||||
-I$(top_srcdir)/src/mesa/ \
|
-I$(top_srcdir)/src/mesa/ \
|
||||||
|
|
@ -49,20 +51,11 @@ libloader_la_CPPFLAGS += \
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if HAVE_LIBDRM
|
if HAVE_LIBDRM
|
||||||
libloader_la_CPPFLAGS += \
|
|
||||||
$(LIBDRM_CFLAGS)
|
|
||||||
|
|
||||||
libloader_la_LIBADD += \
|
libloader_la_LIBADD += \
|
||||||
$(LIBDRM_LIBS)
|
$(LIBDRM_LIBS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if HAVE_DRI3
|
if HAVE_DRI3
|
||||||
libloader_dri3_helper_la_CPPFLAGS = \
|
|
||||||
$(DEFINES) \
|
|
||||||
-I$(top_srcdir)/include \
|
|
||||||
-I$(top_srcdir)/src \
|
|
||||||
$(LIBDRM_CFLAGS)
|
|
||||||
|
|
||||||
libloader_dri3_helper_la_SOURCES = \
|
libloader_dri3_helper_la_SOURCES = \
|
||||||
loader_dri3_helper.c \
|
loader_dri3_helper.c \
|
||||||
loader_dri3_helper.h
|
loader_dri3_helper.h
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue