[Intel-gfx] [PATCH i-g-t 2/2] lib: Attemp at .so libraries
Daniel Vetter
daniel.vetter at ffwll.ch
Thu Aug 31 11:18:26 UTC 2017
I managed to get it built, but none of the executables is using it.
At least one version of this also needed the alsa lib/flags added, so
it'll build properly as an .so. No idea why it doesn't go boom when
only building the .la.
Signed-off-by: Daniel Vetter <daniel.vetter at intel.com>
---
configure.ac | 2 ++
lib/Makefile.am | 6 ++++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 41ec4d26391a..97251883d11c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -39,6 +39,8 @@ AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE([1.12 foreign subdir-objects dist-bzip2])
AM_PATH_PYTHON([3],, [:])
+LT_INIT
+
AC_PROG_CC
AC_PROG_LEX
AC_PROG_YACC
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 0c26186132d1..40399be12da9 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -5,9 +5,10 @@ SUBDIRS = . tests
include Makefile.sources
+lib_LTLIBRARIES = libigt.la
+
libigt_la_SOURCES = $(lib_source_list)
-noinst_LTLIBRARIES = libigt.la
noinst_HEADERS = check-ndebug.h
if HAVE_LIBDRM_VC4
@@ -60,6 +61,7 @@ AM_CFLAGS = \
$(PIXMAN_CFLAGS) \
$(GLIB_CFLAGS) \
$(VALGRIND_CFLAGS) \
+ $(ALSA_CFLAGS) \
-DIGT_SRCDIR=\""$(abs_top_srcdir)/tests"\" \
-DIGT_DATADIR=\""$(pkgdatadir)"\" \
-DIGT_LOG_DOMAIN=\""$(subst _,-,$*)"\" \
@@ -81,5 +83,5 @@ libigt_la_LIBADD = \
$(LIBUDEV_LIBS) \
$(PIXMAN_LIBS) \
$(GLIB_LIBS) \
+ $(ALSA_LIBS) \
-lm
-
--
2.5.5
More information about the Intel-gfx
mailing list