Mesa (master): gbm: Add back link flags for udev, dl and glapi

Benjamin Franzke bnf at kemper.freedesktop.org
Thu Jan 26 04:25:24 PST 2012


Module: Mesa
Branch: master
Commit: 1b417e176765116fd9185b7ea8d6cc8825c30aa3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1b417e176765116fd9185b7ea8d6cc8825c30aa3

Author: Benjamin Franzke <benjaminfranzke at googlemail.com>
Date:   Thu Jan 26 09:47:48 2012 +0100

gbm: Add back link flags for udev, dl and glapi

They were left out when migrating to automake.

---

 src/gbm/Makefile.am |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/gbm/Makefile.am b/src/gbm/Makefile.am
index d18d35c..1dbc9d1 100644
--- a/src/gbm/Makefile.am
+++ b/src/gbm/Makefile.am
@@ -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



More information about the mesa-commit mailing list