projects
/
webkitgtk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
044832a
)
Some architectures need to add -latomic explicitly
author
Alberto Garcia
<berto@igalia.com>
Mon, 28 May 2018 13:17:22 +0000
(14:17 +0100)
committer
Peter Michael Green
<plugwash@raspbian.org>
Mon, 28 May 2018 13:17:22 +0000
(14:17 +0100)
===================================================================
Gbp-Pq: Name atomic_build_fix.patch
Source/autotools/SetupCompilerFlags.m4
patch
|
blob
|
history
diff --git
a/Source/autotools/SetupCompilerFlags.m4
b/Source/autotools/SetupCompilerFlags.m4
index 2141818735e8ca6499cff4af6c9ed7a3b60e00e5..2264cfb426661de9ee6d69e5faa3d8dbe5d3dd0e 100644
(file)
--- a/
Source/autotools/SetupCompilerFlags.m4
+++ b/
Source/autotools/SetupCompilerFlags.m4
@@
-72,3
+72,18
@@
AC_LANG_POP([C++])
if test "$has_atomic" = "no"; then
LIBS="$LIBS -latomic"
fi
+
+# Some architectures need to add libatomic explicitly
+AC_LANG_PUSH([C++])
+AC_LINK_IFELSE([AC_LANG_SOURCE([[
+#include <atomic>
+int main() {
+ std::atomic<int64_t> i(0);
+ i++;
+ return 0;
+}
+]])], has_atomic=yes, has_atomic=no)
+AC_LANG_POP([C++])
+if test "$has_atomic" = "no"; then
+ LIBS="$LIBS -latomic"
+fi