mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2025-12-26 02:50:08 +01:00
Fix the configure-check again: must use b.
Otherwise, when compiling with optimisation, the compiler will detect that b was unused, then use the instructions that i386 supports.
This commit is contained in:
parent
24f55fa8cc
commit
3c99e692c9
1 changed files with 1 additions and 1 deletions
|
|
@ -355,7 +355,7 @@ fi
|
|||
AC_CACHE_CHECK([whether $CC knows __sync_sub_and_fetch()],
|
||||
dbus_cv_sync_sub_and_fetch,
|
||||
[AC_LINK_IFELSE(
|
||||
AC_LANG_PROGRAM([], [[int a = 4; int b = __sync_sub_and_fetch(&a, 4);]]),
|
||||
AC_LANG_PROGRAM([], [[int a = 4; int b = __sync_sub_and_fetch(&a, 4); exit(b); ]]),
|
||||
[dbus_cv_sync_sub_and_fetch=yes],
|
||||
[dbus_cv_sync_sub_and_fetch=no])
|
||||
])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue