From: Andrey Skvortsov Date: Wed, 7 Jan 2015 18:35:54 +0000 (+0300) Subject: selftests/vm: fix link error for transhuge-stress test X-Git-Tag: firefly_0821_release~176^2~2524^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f5db310d77ef1742e40bfc303b8625584c55f9e3;p=firefly-linux-kernel-4.4.55.git selftests/vm: fix link error for transhuge-stress test add -lrt to fix undefined reference to `clock_gettime' error seen when the test is compiled using gcc 4.6.4. Signed-off-by: Andrey Skvortsov Signed-off-by: Shuah Khan --- diff --git a/tools/testing/selftests/vm/Makefile b/tools/testing/selftests/vm/Makefile index 4c4b1f631ecf..077828c889f1 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)