Skip to content

Commit 28beb73

Browse files
igawDaniel 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/[email protected] Cc: Daniel Bristot de Oliveira <[email protected]> Signed-off-by: Daniel Wagner <[email protected]> Signed-off-by: Daniel Bristot de Oliveira <[email protected]>
1 parent 587f05a commit 28beb73

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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)