summaryrefslogtreecommitdiff
path: root/src/gbm
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2012-01-24 11:14:42 -0500
committerMatt Turner <mattst88@gmail.com>2012-01-24 11:32:02 -0500
commita208468e04353239f2876cc2013f860b48a4f1c1 (patch)
tree68c2e58fee58122aad63de8511ed72900fe8f352 /src/gbm
parentfba8257f6a4de48d0b9081405ffb0be978dbc507 (diff)
gbm: install libgbm.so into lib
This partially reverts commit 90e256853418eaaba3717f930cc6a331e4099056.
Diffstat (limited to 'src/gbm')
-rw-r--r--src/gbm/Makefile.am4
-rw-r--r--src/gbm/backends/Makefile.template2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/gbm/Makefile.am b/src/gbm/Makefile.am
index f874f6411a3..d18d35c4e39 100644
--- a/src/gbm/Makefile.am
+++ b/src/gbm/Makefile.am
@@ -32,3 +32,7 @@ libgbm_dri_la_CFLAGS = \
libgbm_la_LIBADD = libgbm_dri.la
endif
+
+all-local: libgbm.la
+ $(MKDIR_P) $(top_builddir)/$(LIB_DIR);
+ ln -f .libs/libgbm.so.1.0.0 $(top_builddir)/$(LIB_DIR)/libgbm.so
diff --git a/src/gbm/backends/Makefile.template b/src/gbm/backends/Makefile.template
index 448dd77d964..1c8f924909e 100644
--- a/src/gbm/backends/Makefile.template
+++ b/src/gbm/backends/Makefile.template
@@ -26,7 +26,7 @@ $(GBM_BACKEND_PATH): $(GBM_BACKEND).so
$(GBM_BACKEND).so: $(GBM_OBJECTS) Makefile $(TOP)/src/gbm/backends/Makefile.template
@$(MKLIB) -o $(GBM_BACKEND).so -noprefix \
- -linker '$(CC)' -ldflags '-L$(TOP)/src/gbm/.libs $(LDFLAGS)' \
+ -linker '$(CC)' -ldflags '-L$(TOP)/$(LIB_DIR) $(LDFLAGS)' \
$(MKLIB_OPTIONS) \
$(GBM_OBJECTS) $(GBM_LIBS) -lgbm