Skip to content

Commit 486f069

Browse files
committed
tools/io_uring: fix Makefile for pthread library link
Currently fails with: io_uring-bench.o: In function `main': /home/axboe/git/linux-block/tools/io_uring/io_uring-bench.c:560: undefined reference to `pthread_create' /home/axboe/git/linux-block/tools/io_uring/io_uring-bench.c:588: undefined reference to `pthread_join' collect2: error: ld returned 1 exit status Makefile:11: recipe for target 'io_uring-bench' failed make: *** [io_uring-bench] Error 1 Move -lpthread to the end. Signed-off-by: Jens Axboe <[email protected]>
1 parent 7996a8b commit 486f069

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/io_uring/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ all: io_uring-cp io_uring-bench
88
$(CC) $(CFLAGS) -o $@ $^
99

1010
io_uring-bench: syscall.o io_uring-bench.o
11-
$(CC) $(CFLAGS) $(LDLIBS) -o $@ $^
11+
$(CC) $(CFLAGS) -o $@ $^ $(LDLIBS)
1212

1313
io_uring-cp: setup.o syscall.o queue.o
1414

0 commit comments

Comments
 (0)