Skip to content

Commit 28beb73

Browse files
dwsuseDaniel Bristot de Oliveira
authored andcommitted
tools: build: use correct lib name for libtracefs feature detection
Use libtracefs as package name to lookup the CFLAGS for libtracefs. This makes it possible to use the distro specific path as include path for the header file. Link: https://lkml.kernel.org/r/20240617-rtla-build-v1-1-6882c34678e8@suse.de Cc: Daniel Bristot de Oliveira <bristot@kernel.org> Signed-off-by: Daniel Wagner <dwagner@suse.de> Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>
1 parent 587f05a commit 28beb73

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tools/build/feature/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ $(OUTPUT)test-libtraceevent.bin:
213213
$(BUILD) -ltraceevent
214214

215215
$(OUTPUT)test-libtracefs.bin:
216-
$(BUILD) $(shell $(PKG_CONFIG) --cflags libtraceevent 2>/dev/null) -ltracefs
216+
$(BUILD) $(shell $(PKG_CONFIG) --cflags libtracefs 2>/dev/null) -ltracefs
217217

218218
$(OUTPUT)test-libcrypto.bin:
219219
$(BUILD) -lcrypto

tools/build/feature/test-libtracefs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: GPL-2.0
2-
#include <tracefs/tracefs.h>
2+
#include <tracefs.h>
33

44
int main(void)
55
{

0 commit comments

Comments
 (0)