[Mesa-dev] [PATCH] i965: fix `make check` target

Mark Janes mark.a.janes at intel.com
Wed Mar 18 11:02:36 PDT 2015


Matt Turner <mattst88 at gmail.com> writes:

> 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.
>

I added libglapi because I saw it in mesa/main/tests/Makefile.am, which
includes tests that Brian wrote for the commit, and because it fixed the
link errors.  Is there an alternative?

>> ---
>>  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
>

You are right, this was sloppy.

>>          $(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