Skip to content

Commit 985a3b3

Browse files
committed
Merge pull request #1508 from hjelmn/builtin_atomics
configure: only enable sync builtin atomics if they link
2 parents f70c5c4 + e1cace0 commit 985a3b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

config/opal_config_asm.m4

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ dnl Copyright (c) 2008-2015 Cisco Systems, Inc. All rights reserved.
1313
dnl Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
1414
dnl Copyright (c) 2015 Research Organization for Information Science
1515
dnl and Technology (RIST). All rights reserved.
16+
dnl Copyright (c) 2014-2016 Los Alamos National Security, LLC. All rights
17+
dnl reserved.
1618
dnl $COPYRIGHT$
1719
dnl
1820
dnl Additional copyrights may follow
@@ -86,7 +88,7 @@ AC_DEFUN([OPAL_CHECK_SYNC_BUILTIN_CSWAP_INT128], [
8688
AC_DEFUN([OPAL_CHECK_SYNC_BUILTINS], [
8789
AC_MSG_CHECKING([for __sync builtin atomics])
8890
89-
AC_TRY_COMPILE([], [__sync_synchronize()],
91+
AC_TRY_LINK([], [__sync_synchronize()],
9092
[AC_MSG_RESULT([yes])
9193
$1],
9294
[AC_MSG_RESULT([no])

0 commit comments

Comments
 (0)