Skip to content

Commit

Permalink
selftests/vm: fix link error for transhuge-stress test
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
AndreySV authored and Shuah Khan committed Jan 8, 2015
1 parent 13e634d commit f5db310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/vm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f5db310

Please sign in to comment.