Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 518288
Collapse All | Expand All

(-)webkit/Source/autotools/SetupCompilerFlags.m4 (+15 lines)
Lines 57-59 else Link Here
57
    CXXFLAGS="$CXXFLAGS -O0"
57
    CXXFLAGS="$CXXFLAGS -O0"
58
    CFLAGS="$CFLAGS -O0"
58
    CFLAGS="$CFLAGS -O0"
59
fi
59
fi
60
61
# Some architectures need to add libatomic explicitly
62
AC_LANG_PUSH([C++])
63
AC_LINK_IFELSE([AC_LANG_SOURCE([[
64
#include <atomic>
65
int main() {
66
   std::atomic<int64_t> i(0);
67
   i++;
68
   return 0;
69
}
70
]])], has_atomic=yes, has_atomic=no)
71
AC_LANG_POP([C++])
72
if test "$has_atomic" = "no"; then
73
   LIBS="$LIBS -latomic"
74
fi

Return to bug 518288