From 1b3abca3b98604274b99e9d5d850c1a043d77412 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 10 May 2016 01:05:46 +0000 Subject: nonclangable: Tweak cflags for icu and ruby icu on clang (arm < v5 ) needs atomics which are not there in libgcc ruby configure triggers on -pie since clang is kind enough to warn about a linker option on compile cmdline, but its treated as error Signed-off-by: Khem Raj --- conf/nonclangable.conf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index 5a4f212..f939f4a 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf @@ -52,5 +52,19 @@ TOOLCHAIN_pn-uclibc = "gcc" TOOLCHAIN_pn-uclibc-initial = "gcc" TOOLCHAIN_pn-valgrind = "gcc" TOOLCHAIN_pn-zlib = "gcc" +# +#../../lib/libicui18n.so: undefined reference to `__atomic_fetch_sub_4' +#../../lib/libicui18n.so: undefined reference to `__atomic_load_4' +#../../lib/libicui18n.so: undefined reference to `__atomic_store_4' +#../../lib/libicui18n.so: undefined reference to `__atomic_fetch_add_4' +# +TOOLCHAIN_pn-icu_toolchain-clang_armv4 = "gcc" +TOOLCHAIN_pn-icu_toolchain-clang_armv5 = "gcc" CFLAGS_append_pn-liboil_toolchain-clang_x86-64 = " -fheinous-gnu-extensions " + +#| configure: error: something wrong with CFLAGS +# Due to -pie (ldflag) being passed to compiler clang warns +# ruby configure does not like that +SECURITY_CFLAGS_remove_pn-ruby_toolchain-clang = "-pie" +SECURITY_LDLAGS_append_pn-ruby_toolchain-clang = " -Wl,-pie" -- cgit v1.2.3-54-g00ecf