[OE-core] [PATCH 2/2] webkitgtk: Link compiler-rt for clang specific built-ins
Khem Raj
raj.khem at gmail.com
Mon Dec 10 23:52:07 UTC 2018
When using clang, its increasingly using its own runtime which means
libgcc is not enough to find all primitives its using.
Fixes errors like
recipe-sysroot/usr/lib/libwebkit2gtk-4.0.so: undefined reference to
`__mulodi4'
Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
meta/recipes-sato/webkit/webkitgtk_2.22.4.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/recipes-sato/webkit/webkitgtk_2.22.4.bb b/meta/recipes-sato/webkit/webkitgtk_2.22.4.bb
index 60f1b3ea5d..196122002b 100644
--- a/meta/recipes-sato/webkit/webkitgtk_2.22.4.bb
+++ b/meta/recipes-sato/webkit/webkitgtk_2.22.4.bb
@@ -98,6 +98,8 @@ EXTRA_OECMAKE_append_x86-x32 = " -DENABLE_JIT=OFF "
SECURITY_CFLAGS_remove_aarch64 = "-fpie"
SECURITY_CFLAGS_append_aarch64 = " -fPIE"
+LDFLAGS_append_toolchain-clang = " -rtlib=compiler-rt"
+
FILES_${PN} += "${libdir}/webkit2gtk-4.0/injected-bundle/libwebkit2gtkinjectedbundle.so"
RRECOMMENDS_${PN} += "ca-certificates shared-mime-info"
--
2.20.0
More information about the Openembedded-core
mailing list