[PATCH] tests: Fix build of noinst fixed-benchmark test
Pekka Paalanen
ppaalanen at gmail.com
Tue Mar 11 01:39:31 PDT 2014
On Tue, 11 Mar 2014 00:01:47 +0000
"Bryce W. Harrington" <b.harrington at samsung.com> wrote:
> Solves this build error:
>
> tests/fixed-benchmark.o: In function `benchmark':
> ./wayland/tests/fixed-benchmark.c:82: undefined reference to `clock_gettime'
> ./wayland/tests/fixed-benchmark.c:84: undefined reference to `clock_gettime'
>
> Signed-off-by: Bryce Harrington <b.harrington at samsung.com>
> ---
> Makefile.am | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/Makefile.am b/Makefile.am
> index cb7a186..f1584d5 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -175,6 +175,7 @@ resources_test_SOURCES = tests/resources-test.c
> resources_test_LDADD = libtest-runner.la
>
> fixed_benchmark_SOURCES = tests/fixed-benchmark.c
> +fixed_benchmark_LDADD = libtest-runner.la
Hi,
I think more appropriate would be to just link it with -lrt, it's not a
test suite runnable test.
Thanks,
pq
More information about the wayland-devel
mailing list