From 4ed0937640b54246440421114b697f75d1b8c835 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 23 Jul 2014 15:41:29 +0100 Subject: [PATCH] Add automake magic required for libobj/ So libobj/ wasn't included in the tarball, and nor was the compatability functions being added to the driver when they were needed. The oddity is that using the ./configure script (and thus make distcheck) succeeds. It was only when 'autoreconf -fi' was run was the first error encoutered. Signed-off-by: Chris Wilson Reported-by: Tobias Klausmann --- Makefile.am | 2 +- configure.ac | 1 + libobj/Makefile.am | 3 +++ libobj/ignore.c | 6 ++++++ src/sna/Makefile.am | 2 +- 5 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 libobj/Makefile.am create mode 100644 libobj/ignore.c diff --git a/Makefile.am b/Makefile.am index 6bb48548..418fdc92 100644 --- a/Makefile.am +++ b/Makefile.am @@ -20,7 +20,7 @@ ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 -SUBDIRS = man xvmc src tools +SUBDIRS = man libobj xvmc src tools MAINTAINERCLEANFILES = ChangeLog INSTALL diff --git a/configure.ac b/configure.ac index 280bfc92..fd997fbe 100644 --- a/configure.ac +++ b/configure.ac @@ -839,6 +839,7 @@ AC_DEFINE_DIR([LIBEXEC_PATH], libexecdir, [libexec directory]) AC_CONFIG_FILES([ Makefile man/Makefile + libobj/Makefile src/Makefile src/legacy/Makefile src/legacy/i810/Makefile diff --git a/libobj/Makefile.am b/libobj/Makefile.am new file mode 100644 index 00000000..92c9ac55 --- /dev/null +++ b/libobj/Makefile.am @@ -0,0 +1,3 @@ +noinst_LTLIBRARIES = libcompat.la +libcompat_la_SOURCES = ignore.c # for portability, always build something +libcompat_la_LIBADD = $(LIBOBJS) $(ALLOCA) diff --git a/libobj/ignore.c b/libobj/ignore.c new file mode 100644 index 00000000..3c56f2fe --- /dev/null +++ b/libobj/ignore.c @@ -0,0 +1,6 @@ +extern void ignore(void); + +void ignore(void) +{ + /* libcompat.a cannot be empty therefore I exist */ +} diff --git a/src/sna/Makefile.am b/src/sna/Makefile.am index a299ea2e..7ec1c362 100644 --- a/src/sna/Makefile.am +++ b/src/sna/Makefile.am @@ -35,7 +35,7 @@ endif noinst_LTLIBRARIES = libsna.la libsna_la_LDFLAGS = -pthread -libsna_la_LIBADD = $(UDEV_LIBS) -lm $(DRM_LIBS) brw/libbrw.la fb/libfb.la +libsna_la_LIBADD = $(UDEV_LIBS) -lm $(DRM_LIBS) brw/libbrw.la fb/libfb.la ../../libobj/libcompat.la libsna_la_SOURCES = \ atomic.h \