gbm: Add back link flags for udev, dl and glapi
authorBenjamin Franzke <benjaminfranzke@googlemail.com>
Thu, 26 Jan 2012 08:47:48 +0000 (09:47 +0100)
committerBenjamin Franzke <benjaminfranzke@googlemail.com>
Thu, 26 Jan 2012 12:23:25 +0000 (13:23 +0100)
They were left out when migrating to automake.

src/gbm/Makefile.am

index d18d35c4e39412edf3efee903a7c56c312b9a692..1dbc9d15c77b95191961addc7864d9754a5f1b04 100644 (file)
@@ -18,6 +18,7 @@ libgbm_la_SOURCES = \
        main/backend.c \
        main/common.c
 libgbm_la_LDFLAGS = -version-info 1:0
+libgbm_la_LIBADD = $(LIBUDEV_LIBS) $(DLOPEN_LIBS)
 
 if HAVE_DRI
 noinst_LTLIBRARIES = libgbm_dri.la
@@ -30,7 +31,8 @@ libgbm_dri_la_CFLAGS = \
        -DDEFAULT_DRIVER_DIR='"$(DRI_DRIVER_SEARCH_DIR)"' \
        $(LIBDRM_CFLAGS)
 
-libgbm_la_LIBADD = libgbm_dri.la
+libgbm_la_LDFLAGS += -L$(top_builddir)/$(LIB_DIR)
+libgbm_la_LIBADD += libgbm_dri.la -lglapi
 endif
 
 all-local: libgbm.la