mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-19 10:05:05 -07:00
Not an ELF system, not an Apple system, weak symbols may not work
This commit is contained in:
parent
76d061b8a5
commit
daeaf63f9c
@ -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); }
|
||||
]], [[ ]]
|
||||
|
Loading…
Reference in New Issue
Block a user