package/uftrace: needs dynamic library
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Thu, 27 May 2021 18:49:21 +0000 (20:49 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tue, 1 Jun 2021 20:17:53 +0000 (22:17 +0200)
Since its addition in commit 09c97972d9f90b69cfc36f9ffe9e22c13daf9307,
uftrace always builds a dynamic library which will raise the following
build failure:

  LINK     libmcount/libmcount.so
.../ld: .../crtbeginT.o: relocation R_X86_64_32 against hidden symbol `__TMC_END__' can not be used when making a shared object

Fixes:
 - http://autobuild.buildroot.org/results/980bb38c6417bd48828379677762382030c5b28a

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/uftrace/Config.in

index 6de9b840ba259a365dc130f59c9b7d2e031e3a97..98ddb7cbfbe1967e68cc4363fcd6c3b1085a6121 100644 (file)
@@ -9,6 +9,7 @@ config BR2_PACKAGE_UFTRACE
        bool "uftrace"
        depends on BR2_PACKAGE_UFTRACE_ARCH_SUPPORTS
        depends on BR2_TOOLCHAIN_HAS_THREADS
+       depends on !BR2_STATIC_LIBS
        select BR2_PACKAGE_ARGP_STANDALONE if \
               BR2_TOOLCHAIN_USES_UCLIBC || \
               BR2_TOOLCHAIN_USES_MUSL
@@ -22,6 +23,6 @@ config BR2_PACKAGE_UFTRACE
 
          https://github.com/namhyung/uftrace
 
-comment "uftrace needs a toolchain w/ threads"
+comment "uftrace needs a toolchain w/ threads, dynamic library"
        depends on BR2_PACKAGE_UFTRACE_ARCH_SUPPORTS
-       depends on !BR2_TOOLCHAIN_HAS_THREADS
+       depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS