1
1

Merge pull request #1508 from hjelmn/builtin_atomics

configure: only enable sync builtin atomics if they link
Этот коммит содержится в:
Nathan Hjelm 2016-03-29 20:09:08 -06:00
родитель f70c5c495b e1cace0b02
Коммит 985a3b35f3

Просмотреть файл

@ -13,6 +13,8 @@ dnl Copyright (c) 2008-2015 Cisco Systems, Inc. All rights reserved.
dnl Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
dnl Copyright (c) 2015 Research Organization for Information Science
dnl and Technology (RIST). All rights reserved.
dnl Copyright (c) 2014-2016 Los Alamos National Security, LLC. All rights
dnl reserved.
dnl $COPYRIGHT$
dnl
dnl Additional copyrights may follow
@ -86,7 +88,7 @@ AC_DEFUN([OPAL_CHECK_SYNC_BUILTIN_CSWAP_INT128], [
AC_DEFUN([OPAL_CHECK_SYNC_BUILTINS], [
AC_MSG_CHECKING([for __sync builtin atomics])
AC_TRY_COMPILE([], [__sync_synchronize()],
AC_TRY_LINK([], [__sync_synchronize()],
[AC_MSG_RESULT([yes])
$1],
[AC_MSG_RESULT([no])