mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 00:39:48 +00:00
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>
This commit is contained in:
parent
13e634de09
commit
f5db310d77
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ BINARIES += transhuge-stress
|
||||||
|
|
||||||
all: $(BINARIES)
|
all: $(BINARIES)
|
||||||
%: %.c
|
%: %.c
|
||||||
$(CC) $(CFLAGS) -o $@ $^
|
$(CC) $(CFLAGS) -o $@ $^ -lrt
|
||||||
|
|
||||||
run_tests: all
|
run_tests: all
|
||||||
@/bin/sh ./run_vmtests || (echo "vmtests: [FAIL]"; exit 1)
|
@/bin/sh ./run_vmtests || (echo "vmtests: [FAIL]"; exit 1)
|
||||||
|
|
Loading…
Reference in a new issue