Skip to content

Commit 5d8401b

Browse files
committed
Merge tag 'landlock-6.1-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux
Pull landlock fix from Mickaël Salaün: "Fix the test build for some distros" * tag 'landlock-6.1-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux: selftests/landlock: Build without static libraries
2 parents bd74502 + 091873e commit 5d8401b

File tree

1 file changed

+4
-3
lines changed
  • tools/testing/selftests/landlock

1 file changed

+4
-3
lines changed

tools/testing/selftests/landlock/Makefile

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# First run: make -C ../../../.. headers_install
44

55
CFLAGS += -Wall -O2 $(KHDR_INCLUDES)
6-
LDLIBS += -lcap
76

87
LOCAL_HDRS += common.h
98

@@ -13,10 +12,12 @@ TEST_GEN_PROGS := $(src_test:.c=)
1312

1413
TEST_GEN_PROGS_EXTENDED := true
1514

16-
# Static linking for short targets:
15+
# Short targets:
16+
$(TEST_GEN_PROGS): LDLIBS += -lcap
1717
$(TEST_GEN_PROGS_EXTENDED): LDFLAGS += -static
1818

1919
include ../lib.mk
2020

21-
# Static linking for targets with $(OUTPUT)/ prefix:
21+
# Targets with $(OUTPUT)/ prefix:
22+
$(TEST_GEN_PROGS): LDLIBS += -lcap
2223
$(TEST_GEN_PROGS_EXTENDED): LDFLAGS += -static

0 commit comments

Comments
 (0)