clang: remove runtime dependency to perl
PATCH 1/1 clang: remove runtime dependency to perl
From: Etienne Cordonnier <[email protected]>
Commit https://github.com/kraj/meta-clang/commit/68ec449f97ffa58d in meta-clang adds a dependency to perl, however at the moment perl does not cross-compile for darwin (the build tries to use readelf which does not exist on darwin, instead of using objdump).
This dependency is needed only for optional runtime tools, so just remove it at the moment.
Signed-off-by Etienne Cordonnier <[email protected]>
--- recipes-devtools/clang/clang_%.bbappend | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
recipes-devtools/clang/clang_%.bbappend +14 -0
@@ -8,6 +8,20 @@ PACKAGECONFIG:remove:class-nativesdk:darwin21 = "shared-libs" DEPENDS:remove:class-nativesdk = "clang-crosssdk-${SDK_ARCH}" DEPENDS:append:class-nativesdk = " clang-crosssdk-${SDK_SYS}" +# perl tries to call readelf, which does not exist on darwin (it would need +# to call objdump instead but the detection logic does not work for some reason) +RDEPENDS:${PN}:remove:class-nativesdk:darwin21 = " \ + perl-module-digest-md5 \ + perl-module-file-basename \ + perl-module-file-copy \ + perl-module-file-find \ + perl-module-file-path \ + perl-module-findbin \ + perl-module-hash-util \ + perl-module-sys-hostname \ + perl-module-term-ansicolor \ +" + COMPILER_RT:class-nativesdk:toolchain-clang:runtime-llvm:darwin21 = "" LIBCPLUSPLUS:class-nativesdk:toolchain-clang:darwin21 = " -stdlib=libstdc++"
Signature · 1 line
2.36.1.vfs.0.0