]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
selftests/vm: fix link error for transhuge-stress test
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Wed, 7 Jan 2015 18:35:54 +0000 (21:35 +0300)
committerShuah Khan <shuahkh@osg.samsung.com>
Thu, 8 Jan 2015 16:01:00 +0000 (09:01 -0700)
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>
tools/testing/selftests/vm/Makefile

index 4c4b1f631ecf61f6e3048d746c23be39ea4f2ef9..077828c889f1377886b98c93349919d55ccb57a2 100644 (file)
@@ -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)