Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Andrey Skvortsov and committed by
Shuah Khan
f5db310d 13e634de

+1 -1
+1 -1
tools/testing/selftests/vm/Makefile
··· 7 7 8 8 all: $(BINARIES) 9 9 %: %.c 10 - $(CC) $(CFLAGS) -o $@ $^ 10 + $(CC) $(CFLAGS) -o $@ $^ -lrt 11 11 12 12 run_tests: all 13 13 @/bin/sh ./run_vmtests || (echo "vmtests: [FAIL]"; exit 1)