Messages in this thread Patch in this message | | | From | Andrey Skvortsov <> | Subject | [PATCH] selftests/vm: fix link error for transhuge-stress test | Date | Wed, 7 Jan 2015 21:35:54 +0300 |
| |
add -lrt to fix undefined reference to `clock_gettime'
Signed-off-by: Andrey Skvortsov <andrej.skvortzov@gmail.com> --- 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) -- 1.7.9.5
| |