diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-10-26 11:03:25 -0700 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2021-11-13 11:03:16 +0100 |
commit | 287f7d1efe78a957befd4aeabd25bf829902012a (patch) | |
tree | cf0d60d4620bf8c702b6fc5514bc676273fd3396 /recipes-qt/qt5/qtwebkit/mips-atomic.patch | |
parent | 6e808aeeced9dc60c5718a7f945b062f19fe8a83 (diff) |
qtwebkit: Fix build on mips/clang
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-qt/qt5/qtwebkit/mips-atomic.patch')
-rw-r--r-- | recipes-qt/qt5/qtwebkit/mips-atomic.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtwebkit/mips-atomic.patch b/recipes-qt/qt5/qtwebkit/mips-atomic.patch new file mode 100644 index 00000000..d29d85ff --- /dev/null +++ b/recipes-qt/qt5/qtwebkit/mips-atomic.patch @@ -0,0 +1,21 @@ +fix build on mips + +Fixes +Source/WTF/wtf/Atomics.cpp:63:9: error: definition of builtin function '__sync_add_and_fetch_8' +int64_t __sync_add_and_fetch_8(int64_t volatile* addend, int64_t value) +Source/WTF/wtf/Atomics.cpp:68:9: error: definition of builtin function '__sync_sub_and_fetch_8' +int64_t __sync_sub_and_fetch_8(int64_t volatile* addend, int64_t value) + +Upstream-Status: Pending +Signed-off-by: Khem Raj <raj.khem@gmail.com> + +--- a/Source/WTF/wtf/Platform.h ++++ b/Source/WTF/wtf/Platform.h +@@ -88,6 +88,7 @@ + #else + #define WTF_CPU_MIPS 1 + #define WTF_MIPS_ARCH __mips ++#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 1 + #endif + #if defined(__MIPSEB__) + #define WTF_CPU_BIG_ENDIAN 1 |