diff options
| author | Khem Raj <raj.khem@gmail.com> | 2016-05-10 01:05:46 +0000 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2016-05-10 01:05:46 +0000 |
| commit | 1b3abca3b98604274b99e9d5d850c1a043d77412 (patch) | |
| tree | 14846f01c74f84c782d3b5a1149069c070292498 /conf | |
| parent | ae695e048867e90fe90ffd93773f73f57db061d1 (diff) | |
| download | meta-clang-1b3abca3b98604274b99e9d5d850c1a043d77412.tar.gz | |
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 <raj.khem@gmail.com>
Diffstat (limited to 'conf')
| -rw-r--r-- | conf/nonclangable.conf | 14 |
1 files changed, 14 insertions, 0 deletions
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" | |||
| 52 | TOOLCHAIN_pn-uclibc-initial = "gcc" | 52 | TOOLCHAIN_pn-uclibc-initial = "gcc" |
| 53 | TOOLCHAIN_pn-valgrind = "gcc" | 53 | TOOLCHAIN_pn-valgrind = "gcc" |
| 54 | TOOLCHAIN_pn-zlib = "gcc" | 54 | TOOLCHAIN_pn-zlib = "gcc" |
| 55 | # | ||
| 56 | #../../lib/libicui18n.so: undefined reference to `__atomic_fetch_sub_4' | ||
| 57 | #../../lib/libicui18n.so: undefined reference to `__atomic_load_4' | ||
| 58 | #../../lib/libicui18n.so: undefined reference to `__atomic_store_4' | ||
| 59 | #../../lib/libicui18n.so: undefined reference to `__atomic_fetch_add_4' | ||
| 60 | # | ||
| 61 | TOOLCHAIN_pn-icu_toolchain-clang_armv4 = "gcc" | ||
| 62 | TOOLCHAIN_pn-icu_toolchain-clang_armv5 = "gcc" | ||
| 55 | 63 | ||
| 56 | CFLAGS_append_pn-liboil_toolchain-clang_x86-64 = " -fheinous-gnu-extensions " | 64 | CFLAGS_append_pn-liboil_toolchain-clang_x86-64 = " -fheinous-gnu-extensions " |
| 65 | |||
| 66 | #| configure: error: something wrong with CFLAGS | ||
| 67 | # Due to -pie (ldflag) being passed to compiler clang warns | ||
| 68 | # ruby configure does not like that | ||
| 69 | SECURITY_CFLAGS_remove_pn-ruby_toolchain-clang = "-pie" | ||
| 70 | SECURITY_LDLAGS_append_pn-ruby_toolchain-clang = " -Wl,-pie" | ||
