On behalf of Ralf Wildenhues:
config/ompi_check_visibility.m4 (OMPI_CHECK_VISIBILITY): Rename ompi_vc_cc_fvisibility to ompi_cv_cc_fvisibility, so that it will be cached. This commit was SVN r16435.
Этот коммит содержится в:
родитель
520c27ac94
Коммит
e9aa15f9d5
@ -33,7 +33,7 @@ AC_DEFUN([OMPI_CHECK_VISIBILITY],[
|
|||||||
CFLAGS="$CFLAGS_orig -fvisibility=hidden"
|
CFLAGS="$CFLAGS_orig -fvisibility=hidden"
|
||||||
add=
|
add=
|
||||||
AC_CACHE_CHECK([if $CC supports -fvisibility],
|
AC_CACHE_CHECK([if $CC supports -fvisibility],
|
||||||
[ompi_vc_cc_fvisibility],
|
[ompi_cv_cc_fvisibility],
|
||||||
[AC_TRY_LINK([
|
[AC_TRY_LINK([
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
__attribute__((visibility("default"))) int foo;
|
__attribute__((visibility("default"))) int foo;
|
||||||
@ -42,17 +42,17 @@ AC_DEFUN([OMPI_CHECK_VISIBILITY],[
|
|||||||
[if test -s conftest.err ; then
|
[if test -s conftest.err ; then
|
||||||
$GREP -iq "visibility" conftest.err
|
$GREP -iq "visibility" conftest.err
|
||||||
if test "$?" = "0" ; then
|
if test "$?" = "0" ; then
|
||||||
ompi_vc_cc_fvisibility="no"
|
ompi_cv_cc_fvisibility="no"
|
||||||
else
|
else
|
||||||
ompi_vc_cc_fvisibility="yes"
|
ompi_cv_cc_fvisibility="yes"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
ompi_vc_cc_fvisibility="yes"
|
ompi_cv_cc_fvisibility="yes"
|
||||||
fi],
|
fi],
|
||||||
[ompi_vc_cc_fvisibility="no"])
|
[ompi_cv_cc_fvisibility="no"])
|
||||||
])
|
])
|
||||||
|
|
||||||
if test "$ompi_vc_cc_fvisibility" = "yes" ; then
|
if test "$ompi_cv_cc_fvisibility" = "yes" ; then
|
||||||
add=" -fvisibility=hidden"
|
add=" -fvisibility=hidden"
|
||||||
have_visibility=1
|
have_visibility=1
|
||||||
AC_MSG_WARN([$add has been added to CFLAGS])
|
AC_MSG_WARN([$add has been added to CFLAGS])
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user