Commit 9fd89d37 authored by Kenneth Raffenetti's avatar Kenneth Raffenetti Committed by Antonio J. Pena
Browse files

correct alias option test for weak attributes

Fixes #1980
Signed-off-by: default avatarAntonio J. Pena <>
parent 3396c1bf
......@@ -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],
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);],
if test "$pac_cv_attr_weak_alias" = "yes" ; then
AC_DEFINE(HAVE_WEAK_ATTRIBUTE,1,[Attribute style weak pragma])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment