diff --git a/configure.ac b/configure.ac index 9c6ab047..fec392f8 100644 --- a/configure.ac +++ b/configure.ac @@ -600,6 +600,9 @@ __asm__ __volatile__ (".hidden dummy_symbol \n" AC_MSG_CHECKING(if weak symbols are supported) AC_LINK_IFELSE([AC_LANG_PROGRAM([[ +#if !defined(__ELF__) && !defined(__APPLE_CC__) +# error Support for weak symbols may not be available +#endif __attribute__((weak)) void __dummy(void *x) { } void f(void *x) { __dummy(x); } ]], [[ ]]