diff options
author | Jakub Jelinek <jakub@redhat.com> | 2009-01-07 23:48:03 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2009-01-07 23:48:03 +0100 |
commit | 876080ffb70bdcb889f47aa334547cf25398e943 (patch) | |
tree | 22dccd08d2bc5c5b6e1c2366084c29c8e88922d4 /libgomp/acinclude.m4 | |
parent | c0f645750c9a137136860fdf91a76b92b847263f (diff) | |
download | gcc-876080ffb70bdcb889f47aa334547cf25398e943.zip gcc-876080ffb70bdcb889f47aa334547cf25398e943.tar.gz gcc-876080ffb70bdcb889f47aa334547cf25398e943.tar.bz2 |
re PR libgomp/38086 (libgomp fails to build if assembler doesn't support .symver)
PR libgomp/38086
* acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
* libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
HAVE_AS_SYMVER_DIRECTIVE is not defined.
* configure: Regenerated.
* config.h.in: Likewise.
From-SVN: r143168
Diffstat (limited to 'libgomp/acinclude.m4')
-rw-r--r-- | libgomp/acinclude.m4 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libgomp/acinclude.m4 b/libgomp/acinclude.m4 index f3cd089..c6d9c30 100644 --- a/libgomp/acinclude.m4 +++ b/libgomp/acinclude.m4 @@ -298,6 +298,16 @@ if test $enable_symvers = yes; then fi fi +AC_CACHE_CHECK([whether the target supports .symver directive], + libgomp_cv_have_as_symver_directive, [ + AC_TRY_COMPILE([void foo (void); __asm (".symver foo, bar@SYMVER");], + [], libgomp_cv_have_as_symver_directive=yes, + libgomp_cv_have_as_symver_directive=no)]) +if test $libgomp_cv_have_as_symver_directive = yes; then + AC_DEFINE(HAVE_AS_SYMVER_DIRECTIVE, 1, + [Define to 1 if the target assembler supports .symver directive.]) +fi + AM_CONDITIONAL(LIBGOMP_BUILD_VERSIONED_SHLIB, test $enable_symvers != no) AC_MSG_NOTICE(versioning on shared library symbols is $enable_symvers) ]) |