diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-05-17 22:34:24 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-05-25 23:59:31 +0100 |
commit | 52f48d89c7cbccc79a83a5c2b91e4b29c05f016a (patch) | |
tree | 2e325376c2485999b1f17529ae8ff86830ee1f67 /meta/recipes-sato | |
parent | a6fdea998e480296cafb77912bc47d25328c51f2 (diff) | |
download | poky-52f48d89c7cbccc79a83a5c2b91e4b29c05f016a.tar.gz |
webkitgtk: Fix build for armv5
Detect atomics during configure
(From OE-Core rev: 424ffbde2111130137e307eb9e598ad50451c865)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-sato')
-rw-r--r-- | meta/recipes-sato/webkit/webkitgtk/detect-atomics-during-configure.patch | 34 | ||||
-rw-r--r-- | meta/recipes-sato/webkit/webkitgtk_2.16.1.bb | 1 |
2 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-sato/webkit/webkitgtk/detect-atomics-during-configure.patch b/meta/recipes-sato/webkit/webkitgtk/detect-atomics-during-configure.patch new file mode 100644 index 0000000000..12836f28f2 --- /dev/null +++ b/meta/recipes-sato/webkit/webkitgtk/detect-atomics-during-configure.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | Taken from | ||
2 | https://bugs.webkit.org/show_bug.cgi?id=161900 | ||
3 | |||
4 | Upstream-Status: Pending | ||
5 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
6 | |||
7 | Index: webkitgtk-2.16.1/Source/WTF/wtf/CMakeLists.txt | ||
8 | =================================================================== | ||
9 | --- webkitgtk-2.16.1.orig/Source/WTF/wtf/CMakeLists.txt | ||
10 | +++ webkitgtk-2.16.1/Source/WTF/wtf/CMakeLists.txt | ||
11 | @@ -182,7 +182,6 @@ set(WTF_HEADERS | ||
12 | |||
13 | set(WTF_SOURCES | ||
14 | Assertions.cpp | ||
15 | - Atomics.cpp | ||
16 | AutomaticThread.cpp | ||
17 | BitVector.cpp | ||
18 | ClockType.cpp | ||
19 | @@ -301,6 +300,15 @@ if (NOT USE_SYSTEM_MALLOC) | ||
20 | list(APPEND WTF_LIBRARIES bmalloc) | ||
21 | endif () | ||
22 | |||
23 | +file(WRITE ${CMAKE_BINARY_DIR}/test_atomics.cpp | ||
24 | + "int main(void)\n" | ||
25 | + "{ long long x = 1; return (int) __sync_add_and_fetch_8(&x, 1); }\n") | ||
26 | +try_compile(ATOMICS_BUILD_SUCCEEDED ${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}/test_atomics.cpp) | ||
27 | +if (NOT ATOMICS_BUILD_SUCCEEDED) | ||
28 | + list(APPEND WTF_SOURCES Atomics.cpp) | ||
29 | +endif () | ||
30 | +file(REMOVE ${CMAKE_BINARY_DIR}/test_atomics.cpp) | ||
31 | + | ||
32 | list(APPEND WTF_SOURCES | ||
33 | unicode/icu/CollatorICU.cpp | ||
34 | ) | ||
diff --git a/meta/recipes-sato/webkit/webkitgtk_2.16.1.bb b/meta/recipes-sato/webkit/webkitgtk_2.16.1.bb index 0931a50636..a52d93cfbe 100644 --- a/meta/recipes-sato/webkit/webkitgtk_2.16.1.bb +++ b/meta/recipes-sato/webkit/webkitgtk_2.16.1.bb | |||
@@ -20,6 +20,7 @@ SRC_URI = "http://www.webkitgtk.org/releases/${BPN}-${PV}.tar.xz \ | |||
20 | file://x32_support.patch \ | 20 | file://x32_support.patch \ |
21 | file://cross-compile.patch \ | 21 | file://cross-compile.patch \ |
22 | file://gcc7.patch \ | 22 | file://gcc7.patch \ |
23 | file://detect-atomics-during-configure.patch \ | ||
23 | " | 24 | " |
24 | SRC_URI[md5sum] = "d3bcf995a667fd9febb9ab991acf0ca7" | 25 | SRC_URI[md5sum] = "d3bcf995a667fd9febb9ab991acf0ca7" |
25 | SRC_URI[sha256sum] = "eb92383232328ce655b703c64370ed3795662479719ad1b4a869ed46769d2945" | 26 | SRC_URI[sha256sum] = "eb92383232328ce655b703c64370ed3795662479719ad1b4a869ed46769d2945" |