diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-09-12 22:37:06 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-09-12 22:37:06 -0700 |
commit | 068c68eb54a576f45eb721964cb425ef1e034cca (patch) | |
tree | 66380d59b4cd5cb84e5fecb2ea92ba232209f71c /recipes-devtools | |
parent | 2ae520aa17fac154004aec15a14fb073cc0d57bd (diff) | |
download | meta-clang-068c68eb54a576f45eb721964cb425ef1e034cca.tar.gz |
ruby,m4: Link with compiler-rt
Fixes issues like
undefined reference to `__mulodi4'
see
https://bugs.llvm.org/show_bug.cgi?id=28629
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-devtools')
-rw-r--r-- | recipes-devtools/m4/m4/disable_builtin_mul_overflow.patch | 19 | ||||
-rw-r--r-- | recipes-devtools/m4/m4_%.bbappend | 3 |
2 files changed, 0 insertions, 22 deletions
diff --git a/recipes-devtools/m4/m4/disable_builtin_mul_overflow.patch b/recipes-devtools/m4/m4/disable_builtin_mul_overflow.patch deleted file mode 100644 index 1fe1beb..0000000 --- a/recipes-devtools/m4/m4/disable_builtin_mul_overflow.patch +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | clang/arm has this issue where it generates call to __mulodi4 | ||
2 | which is only in compiler-rt and we end with errors | ||
3 | |||
4 | /usr/src/debug/m4/1.4.18-r0/build/src/../../m4-1.4.18/lib/xalloc.h:107: undefined reference to `__mulodi4' | ||
5 | |||
6 | |||
7 | Index: m4-1.4.18/lib/xalloc-oversized.h | ||
8 | =================================================================== | ||
9 | --- m4-1.4.18.orig/lib/xalloc-oversized.h | ||
10 | +++ m4-1.4.18/lib/xalloc-oversized.h | ||
11 | @@ -52,7 +52,7 @@ typedef size_t __xalloc_count_type; | ||
12 | #elif ((5 <= __GNUC__ \ | ||
13 | || (__has_builtin (__builtin_mul_overflow) \ | ||
14 | && __has_builtin (__builtin_constant_p))) \ | ||
15 | - && !__STRICT_ANSI__) | ||
16 | + && !__STRICT_ANSI__ && !__clang__) | ||
17 | # define xalloc_oversized(n, s) \ | ||
18 | (__builtin_constant_p (n) && __builtin_constant_p (s) \ | ||
19 | ? __xalloc_oversized (n, s) \ | ||
diff --git a/recipes-devtools/m4/m4_%.bbappend b/recipes-devtools/m4/m4_%.bbappend deleted file mode 100644 index e00f7c4..0000000 --- a/recipes-devtools/m4/m4_%.bbappend +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
2 | |||
3 | SRC_URI += "file://disable_builtin_mul_overflow.patch" | ||