فهرست منبع

package/libtraceevent: needs dynamic library

Fix the following build failure raised since the addition of the package
in commit 1474f1b34b178defca1d16d18a2446fadda9a12b:

../src/event-plugin.c:10:10: fatal error: dlfcn.h: No such file or directory
   10 | #include <dlfcn.h>
      |          ^~~~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/7802d1ad00293147edda39683f6d3f614dd48263

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[yann.morin.1998@free.fr: only list first-level inherited deps]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Fabrice Fontaine 1 سال پیش
والد
کامیت
30cc84d899
3فایلهای تغییر یافته به همراه12 افزوده شده و 0 حذف شده
  1. 4 0
      package/libtraceevent/Config.in
  2. 4 0
      package/libtracefs/Config.in
  3. 4 0
      package/linux-tools/Config.in

+ 4 - 0
package/libtraceevent/Config.in

@@ -1,5 +1,6 @@
 config BR2_PACKAGE_LIBTRACEEVENT
 	bool "libtraceevent"
+	depends on !BR2_STATIC_LIBS # dlfcn.h
 	help
 	  libtraceevent is a library that interfaces with the ftrace
 	  subsystem in the linux kernel.
@@ -9,3 +10,6 @@ config BR2_PACKAGE_LIBTRACEEVENT
 	  rtla.
 
 	  https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/
+
+comment "libtraceevent needs a toolchain w/ dynamic library"
+	depends on BR2_STATIC_LIBS

+ 4 - 0
package/libtracefs/Config.in

@@ -1,8 +1,12 @@
 config BR2_PACKAGE_LIBTRACEFS
 	bool "libtracefs"
+	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/ dynamic library"
+	depends on BR2_STATIC_LIBS

+ 4 - 0
package/linux-tools/Config.in

@@ -104,6 +104,7 @@ endif
 
 config BR2_PACKAGE_LINUX_TOOLS_RTLA
 	bool "rtla"
+	depends on !BR2_STATIC_LIBS # libtracefs
 	select BR2_PACKAGE_LINUX_TOOLS
 	select BR2_PACKAGE_LIBTRACEFS
 	help
@@ -123,6 +124,9 @@ config BR2_PACKAGE_LINUX_TOOLS_RTLA
 	  not available in Buildroot, so only rtla in kernels 5.19
 	  onwards is actually supported in Buildroot.
 
+comment "rtla needs a toolchain w/ dynamic library"
+	depends on BR2_STATIC_LIBS
+
 config BR2_PACKAGE_LINUX_TOOLS_SELFTESTS
 	bool"selftests"
 	depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS # bash