autotools: Only build libmesa-st-tests-common.a for tests.
authorBas Nieuwenhuizen <basni@chromium.org>
Fri, 2 Feb 2018 15:59:23 +0000 (16:59 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 7 Feb 2018 13:04:04 +0000 (14:04 +0100)
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"
Reviewed-By: Gert Wollny <gw.fossdev@gmail.com>
src/mesa/state_tracker/tests/Makefile.am

index cb585141ea6fc0f313058f154000bd67a71576b4..cbb7447ee2cd36ee09144817496df78c98e06478 100644 (file)
@@ -20,7 +20,7 @@ if HAVE_SHARED_GLAPI
 TESTS = st-renumerate-test
 check_PROGRAMS = st-renumerate-test
 
-noinst_LIBRARIES = libmesa-st-tests-common.a
+check_LIBRARIES = libmesa-st-tests-common.a
 endif
 endif