Re: [PATCH] selftests/vm: fix link error for transhuge-stress test
From: Shuah Khan
Date: Wed Jan 07 2015 - 14:21:28 EST
On 01/07/2015 11:35 AM, Andrey Skvortsov wrote:
> add -lrt to fix undefined reference to `clock_gettime'
>
> Signed-off-by: Andrey Skvortsov <andrej.skvortzov@xxxxxxxxx>
> ---
> tools/testing/selftests/vm/Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/testing/selftests/vm/Makefile b/tools/testing/selftests/vm/Makefile
> index 4c4b1f6..077828c 100644
> --- a/tools/testing/selftests/vm/Makefile
> +++ b/tools/testing/selftests/vm/Makefile
> @@ -7,7 +7,7 @@ BINARIES += transhuge-stress
>
> all: $(BINARIES)
> %: %.c
> - $(CC) $(CFLAGS) -o $@ $^
> + $(CC) $(CFLAGS) -o $@ $^ -lrt
>
> run_tests: all
> @/bin/sh ./run_vmtests || (echo "vmtests: [FAIL]"; exit 1)
>
Andrey,
I don't see any undefined references when I build. Curious if it is
specific to your env??
Please include the warning in the change log
when you fix warnings in the future.
-- Shuah
--
Shuah Khan
Sr. Linux Kernel Developer
Open Source Innovation Group
Samsung Research America (Silicon Valley)
shuahkh@xxxxxxxxxxxxxxx | (970) 217-8978
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/