[Mesa-dev] [PATCH] autotools: Only build libmesa-st-tests-common.a for tests.

Gert Wollny gw.fossdev at gmail.com
Fri Feb 2 20:42:37 UTC 2018


Thanks, my automake knowledge is a bit rusty so that I didn't know
about this option to limit the build to "make check".

Reviewed-By: Gert Wollny <gw.fossdev at gmail.com>

Am Freitag, den 02.02.2018, 16:59 +0100 schrieb Bas Nieuwenhuizen:
> We don't need the library if we don't build tests, and building
> it adds a dependency on gtest which adds a dependency on cxxabi.h.
> 
> Fixes: 6569b33b6e "mesa/st/tests: unify MockCodeLine* classes"
> ---
>  src/mesa/state_tracker/tests/Makefile.am | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/mesa/state_tracker/tests/Makefile.am
> b/src/mesa/state_tracker/tests/Makefile.am
> index 3c7993dc8d..9ac2815c91 100644
> --- a/src/mesa/state_tracker/tests/Makefile.am
> +++ b/src/mesa/state_tracker/tests/Makefile.am
> @@ -19,7 +19,7 @@ if HAVE_STD_CXX11
>  TESTS = st-renumerate-test
>  check_PROGRAMS = st-renumerate-test
>  
> -noinst_LIBRARIES = libmesa-st-tests-common.a
> +check_LIBRARIES = libmesa-st-tests-common.a
>  endif
>  
>  libmesa_st_tests_common_a_SOURCES = \


More information about the mesa-dev mailing list