From daeaf63f9c2db4a73a6c41be9b72930f9965a5aa Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 13 Apr 2016 09:22:51 +0200 Subject: [PATCH] Not an ELF system, not an Apple system, weak symbols may not work --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) 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); } ]], [[ ]]