diff options
author | Emil Velikov <[email protected]> | 2014-03-11 15:24:07 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2014-03-31 12:26:47 +0100 |
commit | 0484b8446a02a4b77d5a1dab89f6e0b8af831027 (patch) | |
tree | 044c399c8d86c9e59e138785a2b4a2646064d879 /src/gallium/targets/r600 | |
parent | 2d9c33009a62b704e64b49b87ed1cee9c8dcb12b (diff) |
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 <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/gallium/targets/r600')
-rw-r--r-- | src/gallium/targets/r600/dri/Makefile.am | 3 | ||||
-rw-r--r-- | src/gallium/targets/r600/omx/Makefile.am | 12 | ||||
-rw-r--r-- | src/gallium/targets/r600/vdpau/Makefile.am | 5 | ||||
-rw-r--r-- | src/gallium/targets/r600/xvmc/Makefile.am | 12 |
4 files changed, 4 insertions, 28 deletions
diff --git a/src/gallium/targets/r600/dri/Makefile.am b/src/gallium/targets/r600/dri/Makefile.am index 9f7c096ddf7..f828a734379 100644 --- a/src/gallium/targets/r600/dri/Makefile.am +++ b/src/gallium/targets/r600/dri/Makefile.am @@ -33,6 +33,7 @@ AM_CPPFLAGS = \ dridir = $(DRI_DRIVER_INSTALL_DIR) dri_LTLIBRARIES = r600_dri.la +nodist_EXTRA_r600_dri_la_SOURCES = dummy.cpp r600_dri_la_SOURCES = \ drm_target.c @@ -54,6 +55,4 @@ r600_dri_la_LIBADD = \ $(LIBDRM_LIBS) \ $(RADEON_LIBS) -nodist_EXTRA_r600_dri_la_SOURCES = dummy.cpp - include $(top_srcdir)/install-gallium-links.mk diff --git a/src/gallium/targets/r600/omx/Makefile.am b/src/gallium/targets/r600/omx/Makefile.am index 1f07595d882..22ef08f3a41 100644 --- a/src/gallium/targets/r600/omx/Makefile.am +++ b/src/gallium/targets/r600/omx/Makefile.am @@ -36,6 +36,7 @@ AM_CPPFLAGS = \ omxdir = $(OMX_LIB_INSTALL_DIR) omx_LTLIBRARIES = libomx_r600.la +nodist_EXTRA_libomx_r600_la_SOURCES = dummy.cpp libomx_r600_la_SOURCES = \ drm_target.c \ $(top_srcdir)/src/gallium/auxiliary/vl/vl_winsys_dri.c @@ -50,14 +51,3 @@ libomx_r600_la_LIBADD = \ $(LIBDRM_LIBS) \ $(RADEON_LIBS) \ -lstdc++ - -if HAVE_MESA_LLVM -libomx_r600_la_LINK = $(CXXLINK) $(libomx_r600_la_LDFLAGS) -# Mention a dummy pure C++ file to trigger generation of the $(LINK) variable -nodist_EXTRA_libomx_r600_la_SOURCES = dummy-cpp.cpp - -else -libomx_r600_la_LINK = $(LINK) $(libomx_r600_la_LDFLAGS) -# Mention a dummy pure C file to trigger generation of the $(LINK) variable -nodist_EXTRA_libomx_r600_la_SOURCES = dummy-c.c -endif diff --git a/src/gallium/targets/r600/vdpau/Makefile.am b/src/gallium/targets/r600/vdpau/Makefile.am index 1ff35e0d296..455d90f795b 100644 --- a/src/gallium/targets/r600/vdpau/Makefile.am +++ b/src/gallium/targets/r600/vdpau/Makefile.am @@ -30,6 +30,7 @@ AM_CFLAGS = \ vdpaudir = $(VDPAU_LIB_INSTALL_DIR) vdpau_LTLIBRARIES = libvdpau_r600.la +nodist_EXTRA_libvdpau_r600_la_SOURCES = dummy.cpp libvdpau_r600_la_SOURCES = \ drm_target.c \ $(top_srcdir)/src/gallium/auxiliary/vl/vl_winsys_dri.c @@ -44,8 +45,4 @@ libvdpau_r600_la_LIBADD = \ $(GALLIUM_VDPAU_LIB_DEPS) \ $(RADEON_LIBS) -libvdpau_r600_la_LINK = $(CXXLINK) $(libvdpau_r600_la_LDFLAGS) -# Mention a dummy pure C++ file to trigger generation of the $(LINK) variable -nodist_EXTRA_libvdpau_r600_la_SOURCES = dummy-cpp.cpp - include $(top_srcdir)/install-gallium-links.mk diff --git a/src/gallium/targets/r600/xvmc/Makefile.am b/src/gallium/targets/r600/xvmc/Makefile.am index 55775af72b1..56b0a6d75bf 100644 --- a/src/gallium/targets/r600/xvmc/Makefile.am +++ b/src/gallium/targets/r600/xvmc/Makefile.am @@ -28,6 +28,7 @@ AM_CFLAGS = \ xvmcdir = $(XVMC_LIB_INSTALL_DIR) xvmc_LTLIBRARIES = libXvMCr600.la +nodist_EXTRA_libXvMCr600_la_SOURCES = dummy.cpp libXvMCr600_la_SOURCES = \ drm_target.c \ $(top_srcdir)/src/gallium/auxiliary/vl/vl_winsys_dri.c @@ -41,14 +42,3 @@ libXvMCr600_la_LIBADD = \ $(GALLIUM_XVMC_LIB_DEPS) \ $(GALLIUM_DRI_LIB_DEPS) \ $(RADEON_LIBS) - -if HAVE_MESA_LLVM -libXvMCr600_la_LINK = $(CXXLINK) $(libXvMCr600_la_LDFLAGS) -# Mention a dummy pure C++ file to trigger generation of the $(LINK) variable -nodist_EXTRA_libXvMCr600_la_SOURCES = dummy-cpp.cpp - -else -libXvMCr600_la_LINK = $(LINK) $(libXvMCr600_la_LDFLAGS) -# Mention a dummy pure C file to trigger generation of the $(LINK) variable -nodist_EXTRA_libXvMCr600_la_SOURCES = dummy-c.c -endif |