Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rob Latham
MPICH-BlueGene
Commits
9fd89d37
Commit
9fd89d37
authored
Nov 20, 2013
by
Kenneth Raffenetti
Committed by
Antonio J. Pena
Nov 21, 2013
Browse files
correct alias option test for weak attributes
Fixes #1980 Signed-off-by:
Antonio J. Pena
<
apenya@mcs.anl.gov
>
parent
3396c1bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
confdb/aclocal_cc.m4
View file @
9fd89d37
...
...
@@ -361,7 +361,8 @@ pac_cv_attr_weak_import=yes,pac_cv_attr_weak_import=no)])
# Check if the alias option for weak attributes is allowed
AC_CACHE_CHECK([whether __attribute__((weak,alias(...))) allowed],
pac_cv_attr_weak_alias,[
AC_TRY_COMPILE([int foo(int) __attribute__((weak,alias("__foo")));],[int a;],
AC_TRY_LINK([void __foo(int c) {}
void foo(int c) __attribute__((weak,alias("__foo")));],[foo(0);],
pac_cv_attr_weak_alias=yes,pac_cv_attr_weak_alias=no)])
if test "$pac_cv_attr_weak_alias" = "yes" ; then
AC_DEFINE(HAVE_WEAK_ATTRIBUTE,1,[Attribute style weak pragma])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment