summaryrefslogtreecommitdiffstats
path: root/tools/testing
diff options
context:
space:
mode:
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>2015-01-07 21:35:54 +0300
committerShuah Khan <shuahkh@osg.samsung.com>2015-01-08 09:01:00 -0700
commitf5db310d77ef1742e40bfc303b8625584c55f9e3 (patch)
tree9d000015b33fc4ff18fb9b252490e8eb60f0a156 /tools/testing
parent13e634de0955a2da84a7bf8584d103805b455cbb (diff)
downloadlinux-f5db310d77ef1742e40bfc303b8625584c55f9e3.tar.bz2
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 <andrej.skvortzov@gmail.com> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing')
-rw-r--r--tools/testing/selftests/vm/Makefile2
1 files changed, 1 insertions, 1 deletions
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)