buildroot/package/libtracefs/Config.in
Fabrice Fontaine d5524c0065 package/libtracefs: needs threads
libtracefs needs threads resulting in the following build failure since
its addition in commit b1dbd3f679:

In file included from /home/autobuild/autobuild/instance-2/output-1/host/xtensa-buildroot-linux-uclibc/sysroot/usr/include/stdio.h:27,
                 from ../src/tracefs-instance.c:10:
/home/autobuild/autobuild/instance-2/output-1/host/xtensa-buildroot-linux-uclibc/sysroot/usr/include/features.h:218:5: warning: #warning requested reentrant code, but thread support was disabled [-Wcpp]
  218 | #   warning requested reentrant code, but thread support was disabled
      |     ^~~~~~~
../src/tracefs-instance.c:20:10: fatal error: pthread.h: No such file or directory
   20 | #include <pthread.h>
      |          ^~~~~~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/e0a8dd0781a1d1824a4cb78f47dcff4055083959

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Reviewed-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2024-02-05 16:26:31 +01:00

14 lines
477 B
Plaintext

config BR2_PACKAGE_LIBTRACEFS
bool "libtracefs"
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on !BR2_STATIC_LIBS # libtraceevent
select BR2_PACKAGE_LIBTRACEEVENT
help
libtracefs is used to easily interface with the ftrace
interface through the tracefs virtual filesystem.
https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/
comment "libtracefs needs a toolchain w/ threads, dynamic library"
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS