From 8b866aef9f5f6fc7e4998cf59a409b647d18dd21 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 13 Mar 2017 16:57:49 -0700 Subject: nonclangable: Disable intrinsics for sqlite3 when building with clang it uses compiler-rt intrinsics which are not available in libgcc and link fails Signed-off-by: Khem Raj --- conf/nonclangable.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index b9141a6..d09b212 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf @@ -104,6 +104,11 @@ TOOLCHAIN_pn-qemu_arm = "gcc" CFLAGS_append_pn-liboil_toolchain-clang_x86-64 = " -fheinous-gnu-extensions " +#| ./.libs/libsqlite3.so: undefined reference to `__mulodi4' +#| clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation) +#| make: *** [Makefile:509: sqlite3] Error 1 +CFLAGS_append_pn-sqlite3_toolchain-clang = " -DSQLITE_DISABLE_INTRINSIC " + #| configure: error: something wrong with CFLAGS # Due to -pie (ldflag) being passed to compiler clang warns # ruby configure does not like that -- cgit v1.2.3-54-g00ecf