[Mesa-dev] [PATCH] i965: fix `make check` target
Matt Turner
mattst88 at gmail.com
Wed Mar 18 10:44:37 PDT 2015
On Wed, Mar 18, 2015 at 10:38 AM, Mark Janes <mark.a.janes at intel.com> wrote:
> 4bdbb588a9d385509f9168e38bfdb76952ba469c introduced link errors for
> i965 gtests. This commit links the tests with libglapi, which
> contains the missing symbols.
I'm not really sure linking to libglapi is the right thing to do.
> ---
> src/mesa/drivers/dri/i965/Makefile.am | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/src/mesa/drivers/dri/i965/Makefile.am b/src/mesa/drivers/dri/i965/Makefile.am
> index 235bcfe..f828f00 100644
> --- a/src/mesa/drivers/dri/i965/Makefile.am
> +++ b/src/mesa/drivers/dri/i965/Makefile.am
> @@ -67,24 +67,28 @@ check_PROGRAMS = $(TESTS)
> test_fs_cmod_propagation_SOURCES = \
> test_fs_cmod_propagation.cpp
> test_fs_cmod_propagation_LDADD = \
> + $(top_builddir)/src/mapi/shared-glapi/libglapi.la \
> $(top_builddir)/src/gtest/libgtest.la \
> $(TEST_LIBS)
>
> test_fs_saturate_propagation_SOURCES = \
> test_fs_saturate_propagation.cpp
> test_fs_saturate_propagation_LDADD = \
> + $(top_builddir)/src/mapi/shared-glapi/libglapi.la \
> $(top_builddir)/src/gtest/libgtest.la \
> $(TEST_LIBS)
>
> test_vf_float_conversions_SOURCES = \
> test_vf_float_conversions.cpp
> test_vf_float_conversions_LDADD = \
> + $(top_builddir)/src/mapi/shared-glapi/libglapi.la \
> $(top_builddir)/src/gtest/libgtest.la \
> $(TEST_LIBS)
>
> test_vec4_register_coalesce_SOURCES = \
> test_vec4_register_coalesce.cpp
> test_vec4_register_coalesce_LDADD = \
> + $(top_builddir)/src/mapi/shared-glapi/libglapi.la \
> $(top_builddir)/src/gtest/libgtest.la \
> $(TEST_LIBS)
>
> @@ -92,9 +96,13 @@ test_vec4_copy_propagation_SOURCES = \
> test_vec4_copy_propagation.cpp
> test_vec4_copy_propagation_LDADD = \
> $(top_builddir)/src/gtest/libgtest.la \
> + $(top_builddir)/src/mapi/shared-glapi/libglapi.la \
Put this before libgtest.la
> $(TEST_LIBS)
>
> test_eu_compact_SOURCES = \
> test_eu_compact.c
> nodist_EXTRA_test_eu_compact_SOURCES = dummy.cpp
> -test_eu_compact_LDADD = $(TEST_LIBS)
> +test_eu_compact_LDADD = \
> + $(top_builddir)/src/mapi/shared-glapi/libglapi.la \
> + $(TEST_LIBS)
> +
Extra newline.
More information about the mesa-dev
mailing list