gbm: do not build intermittent libgbm_dri static library
authorEmil Velikov <emil.l.velikov@gmail.com>
Tue, 30 Jun 2015 21:43:50 +0000 (22:43 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 22 Jul 2015 15:35:27 +0000 (16:35 +0100)
The only user of it (libgbm.la) immediately links it. Just build it
directly into the library.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/gbm/Makefile.am

index da4195df31cbcfb81c58a75961225353401a88b6..9a584cab35202e6772d8ad346b4f4708e1641334 100644 (file)
@@ -39,18 +39,15 @@ libgbm_la_LIBADD += $(top_builddir)/src/egl/wayland/wayland-drm/libwayland-drm.l
 endif
 
 if HAVE_DRI2
-noinst_LTLIBRARIES = libgbm_dri.la
-libgbm_dri_la_SOURCES = \
+libgbm_la_SOURCES += \
        backends/dri/gbm_dri.c \
        backends/dri/gbm_driint.h
 
-libgbm_dri_la_CFLAGS = \
-       $(AM_CFLAGS) \
+AM_CFLAGS += \
        -DDEFAULT_DRIVER_DIR='"$(DRI_DRIVER_SEARCH_DIR)"' \
        $(LIBDRM_CFLAGS)
 
 libgbm_la_LIBADD += \
-       libgbm_dri.la \
        $(LIBDRM_LIBS)
 endif