Message ID | 20230908-kselftest-09-08-v2-3-0def978a4c1b@google.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | 91939636cac4585e5c99a15c8b9023e0dcabb4e5 |
Headers | show |
Series | selftests/hid: fix building for older kernels | expand |
diff --git a/tools/testing/selftests/hid/Makefile b/tools/testing/selftests/hid/Makefile index c5522088ece4..b01c14077c5d 100644 --- a/tools/testing/selftests/hid/Makefile +++ b/tools/testing/selftests/hid/Makefile @@ -22,6 +22,8 @@ CXX ?= $(CROSS_COMPILE)g++ HOSTPKG_CONFIG := pkg-config CFLAGS += -g -O0 -rdynamic -Wall -Werror -I$(OUTPUT) +CFLAGS += -I$(OUTPUT)/tools/include + LDLIBS += -lelf -lz -lrt -lpthread # Silence some warnings when compiled with clang