vc4: Fix automake linking error.
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Tue, 31 Jul 2018 12:17:23 +0000 (14:17 +0200)
committerJuan A. Suarez Romero <jasuarez@igalia.com>
Wed, 1 Aug 2018 18:33:07 +0000 (20:33 +0200)
  CXXLD    gallium_dri.la
../../../../src/gallium/drivers/vc4/.libs/libvc4.a(vc4_cl_dump.o): In function `vc4_dump_cl':
src/gallium/drivers/vc4/vc4_cl_dump.c:45: undefined reference to `clif_dump_init'
src/gallium/drivers/vc4/vc4_cl_dump.c:82: undefined reference to `clif_dump_destroy'
../../../../src/broadcom/cle/.libs/libbroadcom_cle.a(cle_libbroadcom_cle_la-v3d_decoder.o): In function `v3d_field_iterator_next':
src/broadcom/cle/v3d_decoder.c:902: undefined reference to `clif_lookup_bo'

Fixes: e92959c4e0 ("v3d: Pass the whole clif_dump structure to v3d_print_group().")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107423
CC: Eric Anholt <eric@anholt.net>
Acked-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Andres Gomez <agomez@igalia.com>
src/gallium/drivers/vc4/Automake.inc

index b1aa9726bd6bc34b5974506f80a42cf67749543a..650466e495a332483a8c93027f90eb37bfa7e8e0 100644 (file)
@@ -2,9 +2,18 @@ if HAVE_GALLIUM_VC4
 
 TARGET_DRIVERS += vc4
 TARGET_CPPFLAGS += -DGALLIUM_VC4
+
+if !HAVE_GALLIUM_V3D
+TARGET_LIB_DEPS += \
+       $(top_builddir)/src/broadcom/libbroadcom.la \
+       $(top_builddir)/src/broadcom/libbroadcom_v33.la \
+       $(top_builddir)/src/broadcom/libbroadcom_v41.la
+endif
+
 TARGET_LIB_DEPS += \
        $(top_builddir)/src/gallium/winsys/vc4/drm/libvc4drm.la \
        $(top_builddir)/src/gallium/drivers/vc4/libvc4.la \
        $(top_builddir)/src/broadcom/cle/libbroadcom_cle.la
 
+
 endif