Mesa (master): automake: Remove libdricore clip.c workaround lib.

Chad Versace chadversary at kemper.freedesktop.org
Mon Nov 12 23:55:32 UTC 2012


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

Author: Eric Anholt <eric at anholt.net>
Date:   Tue Nov  6 23:18:40 2012 -0800

automake: Remove libdricore clip.c workaround lib.

sparc/clip.c got moved to sparc/sparc-clip.c to avoid doing this workaround in
the parent directory.

Reviewed-by: Chad Versace <chad.versace at linux.intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org> (v1)

---

 src/mesa/libdricore/Makefile.am |   23 +++++++----------------
 1 files changed, 7 insertions(+), 16 deletions(-)

diff --git a/src/mesa/libdricore/Makefile.am b/src/mesa/libdricore/Makefile.am
index 21454aa..8956276 100644
--- a/src/mesa/libdricore/Makefile.am
+++ b/src/mesa/libdricore/Makefile.am
@@ -43,39 +43,30 @@ libdricore at VERSION@_la_SOURCES = \
 libdricore at VERSION@_la_LDFLAGS = -version-number 1:0
 libdricore at VERSION@_la_LIBADD = \
         ../program/libdricore_program.la \
-        libdricore-asm.la
-
-# This is separated from libdricore to avoid conflics in object
-# outputs between main/clip.c and sparc/clip.c.  The documented way to
-# do this is with the automake option subdir-objects, except that
-# option is broken in the presence of variable expansion in *_SOURCES.
-# I have no idea how that option is supposed to be usable as is.
-libdricore_asm_la_SOURCES =
-libdricore_asm_la_CCASFLAGS = $(AM_CCASFLAGS) -DWORKAROUND_AUTOMAKE_OBJ_FILE_CONFLICTS
+        $()
 
 if HAVE_X86_ASM
-libdricore_asm_la_SOURCES += $(X86_FILES)
-libdricore_asm_la_CPPFLAGS = $(AM_CPPFLAGS) \
+libdricore at VERSION@_la_SOURCES += $(X86_FILES)
+AM_CPPFLAGS += \
         -I$(top_builddir)/src/mesa/x86 \
         -I$(top_srcdir)/src/mesa/x86
 endif
 
 if HAVE_X86_64_ASM
-libdricore_asm_la_SOURCES += $(X86_64_FILES)
-libdricore_asm_la_CPPFLAGS = $(AM_CPPFLAGS) \
+libdricore at VERSION@_la_SOURCES += $(X86_64_FILES)
+AM_CPPFLAGS += \
         -I$(top_builddir)/src/mesa/x86-64 \
         -I$(top_srcdir)/src/mesa/x86-64
 endif
 
 if HAVE_SPARC_ASM
-libdricore_asm_la_SOURCES += $(SPARC_FILES)
-libdricore_asm_la_CPPFLAGS = $(AM_CPPFLAGS) \
+libdricore at VERSION@_la_SOURCES += $(SPARC_FILES)
+AM_CPPFLAGS += \
         -I$(top_builddir)/src/mesa/sparc \
         -I$(top_srcdir)/src/mesa/sparc
 endif
 
 if HAVE_DRI
-noinst_LTLIBRARIES = libdricore-asm.la
 lib_LTLIBRARIES = libdricore at VERSION@.la
 
 # Provide compatibility with scripts for the old Mesa build system for




More information about the mesa-commit mailing list