mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-25 03:40:09 +01:00
[build] Configure switch to disable atomics
Workaround for my arm toolchain which succeeds in linking the configure program, only to complain when linking a program (such as cairo-perf) against libcairo.so. Annoying.
This commit is contained in:
parent
cb30c1f367
commit
920f59a755
1 changed files with 8 additions and 2 deletions
|
|
@ -8,8 +8,14 @@ dnl ====================================================================
|
|||
|
||||
AM_CONDITIONAL(CROSS_COMPILING, test "x$cross_compiling" = "xyes")
|
||||
CAIRO_BIGENDIAN
|
||||
CAIRO_CHECK_NATIVE_ATOMIC_PRIMITIVES
|
||||
CAIRO_CHECK_ATOMIC_OP_NEEDS_MEMORY_BARRIER
|
||||
AC_ARG_ENABLE(atomic,
|
||||
[AS_HELP_STRING([--disable-atomic],
|
||||
[disable use of native atomic operations])],
|
||||
[use_atomic=$enableval], [use_atomic=yes])
|
||||
AS_IF([test "x$use_atomic" = "xyes"], [
|
||||
CAIRO_CHECK_NATIVE_ATOMIC_PRIMITIVES
|
||||
CAIRO_CHECK_ATOMIC_OP_NEEDS_MEMORY_BARRIER
|
||||
])
|
||||
AC_CHECK_SIZEOF(void *)
|
||||
AC_CHECK_SIZEOF(int)
|
||||
AC_CHECK_SIZEOF(long)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue