From 0484b8446a02a4b77d5a1dab89f6e0b8af831027 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Tue, 11 Mar 2014 15:24:07 +0000 Subject: gallium/targets: explicitly include a dummy.cpp and remove all the LINK mayhem Explicitly setting the linker variable was required for old and broken build toolchains. At this point this should no longer be needed, and setting the sources lists will trigger generation of the correct LINK variables. Explicitly include dummy.cpp to use g++ to link the static library which in most cases is based upon C++ code. v2: Reword commit message. Signed-off-by: Emil Velikov Reviewed-by: Matt Turner --- src/gallium/targets/xa/Makefile.am | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/gallium/targets/xa') diff --git a/src/gallium/targets/xa/Makefile.am b/src/gallium/targets/xa/Makefile.am index 1753f1d49fa..1d4f095da33 100644 --- a/src/gallium/targets/xa/Makefile.am +++ b/src/gallium/targets/xa/Makefile.am @@ -36,6 +36,7 @@ pkgconfig_DATA = xatracker.pc lib_LTLIBRARIES = libxatracker.la +nodist_EXTRA_libxatracker_la_SOURCES = dummy.cpp libxatracker_la_SOURCES = libxatracker_la_LIBADD = \ @@ -62,16 +63,9 @@ libxatracker_la_LDFLAGS = \ -no-undefined \ -version-number $(XA_MAJOR):$(XA_MINOR):$(XA_TINY) -# FIXME: this shouldn't be needed if HAVE_MESA_LLVM -# Mention a dummy pure C++ file to trigger generation of the $(LINK) variable -nodist_EXTRA_libxatracker_la_SOURCES = dummy-cpp.cpp - libxatracker_la_LIBADD += $(LLVM_LIBS) libxatracker_la_LDFLAGS += $(LLVM_LDFLAGS) -else -# Mention a dummy pure C file to trigger generation of the $(LINK) variable -nodist_EXTRA_libxatracker_la_SOURCES = dummy-c.c endif include $(top_srcdir)/install-lib-links.mk -- cgit v1.2.3