diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-09-17 23:40:43 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-09-18 15:24:19 -0700 |
commit | 34296e02491cda2ef3c6e624444f8b25888cbad0 (patch) | |
tree | db736bac4816894366c4998a283608660e746cf2 /conf | |
parent | f1b2bca4f51623b3605468d629dec7508a1db149 (diff) | |
download | meta-clang-34296e02491cda2ef3c6e624444f8b25888cbad0.tar.gz |
clang.bbclass: Do not set LIBCPLUSPLUS and COMPILER_RT when compiler != clang
* Add compiler-rt and libcxx only when these libs are used via cmdline
* libffi still need to disable internal asm on arm <= v6
* Add compiler-rt to linker only when compiler-rt is used in compiler
cmdline
* Set BASE_DEFAULT_DEPS instead of munging BASEEDEPENDS directly
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'conf')
-rw-r--r-- | conf/nonclangable.conf | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index 0537222..b5ebe3b 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf | |||
@@ -137,7 +137,8 @@ CFLAGS_append_pn-mdadm_toolchain-clang = " -Wno-error=unknown-warning-option" | |||
137 | 137 | ||
138 | #../libffi-3.2.1/src/arm/sysv.S:363:2: error: invalid instruction, did you mean: fldmiax? | 138 | #../libffi-3.2.1/src/arm/sysv.S:363:2: error: invalid instruction, did you mean: fldmiax? |
139 | # fldmiadgt ip, {d0-d7} | 139 | # fldmiadgt ip, {d0-d7} |
140 | #CFLAGS_append_pn-libffi_toolchain-clang = " -no-integrated-as" | 140 | CFLAGS_append_pn-libffi_arm_toolchain-clang = " -no-integrated-as" |
141 | CFLAGS_append_pn-libffi_armeb_toolchain-clang = " -no-integrated-as" | ||
141 | # ../db-5.3.28/src/mutex/mut_tas.c:150:34: error: unknown directive | 142 | # ../db-5.3.28/src/mutex/mut_tas.c:150:34: error: unknown directive |
142 | #<inline asm>:9:2: note: instantiated into assembly here | 143 | #<inline asm>:9:2: note: instantiated into assembly here |
143 | # .force_thumb | 144 | # .force_thumb |
@@ -211,8 +212,8 @@ TUNE_CCARGS_remove_pn-omxplayer_toolchain-clang = "-no-integrated-as" | |||
211 | 212 | ||
212 | #| /usr/src/debug/ruby/2.5.1-r0/build/../ruby-2.5.1/process.c:7073: undefined reference to `__mulodi4' | 213 | #| /usr/src/debug/ruby/2.5.1-r0/build/../ruby-2.5.1/process.c:7073: undefined reference to `__mulodi4' |
213 | #| clang-7: error: linker command failed with exit code 1 (use -v to see invocation) | 214 | #| clang-7: error: linker command failed with exit code 1 (use -v to see invocation) |
214 | LDFLAGS_append_pn-ruby_toolchain-clang = " -rtlib=compiler-rt" | 215 | LDFLAGS_append_pn-ruby_toolchain-clang = "${@bb.utils.contains('COMPILER_RT', '--rtlib=compiler-rt', ' -rtlib=compiler-rt', '', d)}" |
215 | LDFLAGS_append_pn-m4_toolchain-clang = " -rtlib=compiler-rt" | 216 | LDFLAGS_append_pn-m4_toolchain-clang = "${@bb.utils.contains('COMPILER_RT', '--rtlib=compiler-rt', ' -rtlib=compiler-rt', '', d)}" |
216 | LDFLAGS_remove_pn-m4_powerpc = "-rtlib=compiler-rt" | 217 | LDFLAGS_remove_pn-m4_powerpc = "-rtlib=compiler-rt" |
217 | 218 | ||
218 | LDFLAGS_append_pn-gnutls_toolchain-clang_riscv64 = " -latomic" | 219 | LDFLAGS_append_pn-gnutls_toolchain-clang_riscv64 = " -latomic" |