summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtwebkit/0010-webdriver-libatomic.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-qt/qt5/qtwebkit/0010-webdriver-libatomic.patch')
-rw-r--r--recipes-qt/qt5/qtwebkit/0010-webdriver-libatomic.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtwebkit/0010-webdriver-libatomic.patch b/recipes-qt/qt5/qtwebkit/0010-webdriver-libatomic.patch
new file mode 100644
index 00000000..39ee847c
--- /dev/null
+++ b/recipes-qt/qt5/qtwebkit/0010-webdriver-libatomic.patch
@@ -0,0 +1,23 @@
1link with libatomic
2
3This fixes build with C11
4
5lib/../Source/WTF/wtf/CMakeFiles/WTF.dir/Assertions.cpp.o:/usr/include/c++/11.0.1/bits/atomic_base.h:520: more undefined references to `__atomic_compare_exchange_1' follow
6| collect2: error: ld returned 1 exit status
7
8Upstream-Status: Pending
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10
11--- a/Source/WTF/wtf/CMakeLists.txt
12+++ b/Source/WTF/wtf/CMakeLists.txt
13@@ -245,6 +245,10 @@ if (NOT USE_SYSTEM_MALLOC)
14 list(APPEND WTF_LIBRARIES bmalloc)
15 endif ()
16
17+list(APPEND WTF_LIBRARIES
18+ -Wl,--as-needed -Wl,-latomic -Wl,--no-as-needed
19+)
20+
21 list(APPEND WTF_SOURCES
22 unicode/icu/CollatorICU.cpp
23 )