diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-12-18 22:39:48 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-20 15:22:16 +0000 |
commit | 118bfb82ffe5d0a9dbb97df2c17fdaeb108540c5 (patch) | |
tree | 73bae4da62dd42313607113b37949ede45c9a9ea /meta/recipes-sato | |
parent | 133aa828f506260a6b61490810b3542a6c18004a (diff) | |
download | poky-118bfb82ffe5d0a9dbb97df2c17fdaeb108540c5.tar.gz |
webkitgtk: Fix atomic detection on arm architecture
(From OE-Core rev: a77fc49defcf3a30a8f026cfdbd56565750f5a61)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-sato')
-rw-r--r-- | meta/recipes-sato/webkit/files/detect_atomics.patch | 38 | ||||
-rw-r--r-- | meta/recipes-sato/webkit/webkitgtk_2.14.2.bb | 1 |
2 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-sato/webkit/files/detect_atomics.patch b/meta/recipes-sato/webkit/files/detect_atomics.patch new file mode 100644 index 0000000000..c4e80a7d96 --- /dev/null +++ b/meta/recipes-sato/webkit/files/detect_atomics.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | Sourced from https://bugs.webkit.org/show_bug.cgi?id=161900 | ||
2 | |||
3 | on arm fixes | ||
4 | |||
5 | | /usr/src/debug/libgcc/6.2.0-r0/gcc-6.2.0/build.arm-oe-linux-gnueabi.arm-oe-linux-gnueabi/libgcc/../../../../../../../work-shared/gcc-6.2.0-r0/gcc-6.2.0/libgcc/config/arm/linux-atomic-64bit.c:117: multiple definition of `__sync_sub_and_fetch_8' | ||
6 | |||
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
8 | |||
9 | Upstream-Status: Backport | ||
10 | |||
11 | diff --git a/Source/WTF/wtf/CMakeLists.txt b/Source/WTF/wtf/CMakeLists.txt | ||
12 | index 867999e..ea69322 100644 | ||
13 | --- a/Source/WTF/wtf/CMakeLists.txt | ||
14 | +++ b/Source/WTF/wtf/CMakeLists.txt | ||
15 | @@ -171,7 +171,6 @@ set(WTF_HEADERS | ||
16 | |||
17 | set(WTF_SOURCES | ||
18 | Assertions.cpp | ||
19 | - Atomics.cpp | ||
20 | BitVector.cpp | ||
21 | CompilationThread.cpp | ||
22 | CrossThreadCopier.cpp | ||
23 | @@ -276,6 +275,15 @@ if (NOT USE_SYSTEM_MALLOC) | ||
24 | list(APPEND WTF_LIBRARIES bmalloc) | ||
25 | endif () | ||
26 | |||
27 | +file(WRITE ${CMAKE_BINARY_DIR}/test_atomics.cpp | ||
28 | + "int main(void)\n" | ||
29 | + "{ long long x = 1; return (int) __sync_add_and_fetch_8(&x, 1); }\n") | ||
30 | +try_compile(ATOMICS_BUILD_SUCCEEDED ${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}/test_atomics.cpp) | ||
31 | +if (NOT ATOMICS_BUILD_SUCCEEDED) | ||
32 | + list(APPEND WTF_SOURCES Atomics.cpp) | ||
33 | +endif () | ||
34 | +file(REMOVE ${CMAKE_BINARY_DIR}/test_atomics.cpp) | ||
35 | + | ||
36 | list(APPEND WTF_SOURCES | ||
37 | unicode/icu/CollatorICU.cpp | ||
38 | ) | ||
diff --git a/meta/recipes-sato/webkit/webkitgtk_2.14.2.bb b/meta/recipes-sato/webkit/webkitgtk_2.14.2.bb index 1c327babfb..46b54683fb 100644 --- a/meta/recipes-sato/webkit/webkitgtk_2.14.2.bb +++ b/meta/recipes-sato/webkit/webkitgtk_2.14.2.bb | |||
@@ -19,6 +19,7 @@ SRC_URI = "http://www.webkitgtk.org/releases/${BPN}-${PV}.tar.xz \ | |||
19 | file://0001-Fix-racy-parallel-build-of-WebKit2-4.0.gir.patch \ | 19 | file://0001-Fix-racy-parallel-build-of-WebKit2-4.0.gir.patch \ |
20 | file://0001-Tweak-gtkdoc-settings-so-that-gtkdoc-generation-work.patch \ | 20 | file://0001-Tweak-gtkdoc-settings-so-that-gtkdoc-generation-work.patch \ |
21 | file://0001-WebKitMacros-Append-to-I-and-not-to-isystem.patch \ | 21 | file://0001-WebKitMacros-Append-to-I-and-not-to-isystem.patch \ |
22 | file://detect_atomics.patch \ | ||
22 | " | 23 | " |
23 | 24 | ||
24 | SRC_URI[md5sum] = "2fe3cadbc546d93ca68a13756c2be015" | 25 | SRC_URI[md5sum] = "2fe3cadbc546d93ca68a13756c2be015" |