diff options
Diffstat (limited to 'debian/patches/atomic_build_fix.patch')
-rw-r--r-- | debian/patches/atomic_build_fix.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/patches/atomic_build_fix.patch b/debian/patches/atomic_build_fix.patch new file mode 100644 index 0000000..100c572 --- /dev/null +++ b/debian/patches/atomic_build_fix.patch @@ -0,0 +1,25 @@ +From: Alberto Garcia <berto@igalia.com> +Subject: Some architectures need to add -latomic explicitly +Index: webkitgtk/Source/autotools/SetupCompilerFlags.m4 +=================================================================== +--- webkitgtk.orig/Source/autotools/SetupCompilerFlags.m4 ++++ webkitgtk/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 |