mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
Explicitly test for 'static weakref' support.
Since we use 'static' weakref symbols, and not all GCC versions support them, test for that combination explicitly. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@201137 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
6
configure
vendored
6
configure
vendored
@@ -1,5 +1,5 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# From configure.ac Revision: 200985 .
|
# From configure.ac Revision: 201090 .
|
||||||
# Guess values for system-dependent variables and create Makefiles.
|
# Guess values for system-dependent variables and create Makefiles.
|
||||||
# Generated by GNU Autoconf 2.63 for asterisk 1.6.
|
# Generated by GNU Autoconf 2.63 for asterisk 1.6.
|
||||||
#
|
#
|
||||||
@@ -18937,7 +18937,7 @@ _ACEOF
|
|||||||
cat confdefs.h >>conftest.$ac_ext
|
cat confdefs.h >>conftest.$ac_ext
|
||||||
cat >>conftest.$ac_ext <<_ACEOF
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
void __attribute__((weakref)) *test(void *muffin, ...) {return (void *) 0;}
|
static void __attribute__((weakref)) *test(void *muffin, ...) {return (void *) 0;}
|
||||||
int
|
int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
@@ -18988,7 +18988,7 @@ _ACEOF
|
|||||||
cat confdefs.h >>conftest.$ac_ext
|
cat confdefs.h >>conftest.$ac_ext
|
||||||
cat >>conftest.$ac_ext <<_ACEOF
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
void __attribute__((weakref("foo"))) *test(void *muffin, ...) {return (void *) 0;}
|
static void __attribute__((weakref("foo"))) *test(void *muffin, ...) {return (void *) 0;}
|
||||||
int
|
int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
|
@@ -514,7 +514,7 @@ AST_GCC_ATTRIBUTE(always_inline)
|
|||||||
AST_GCC_ATTRIBUTE(deprecated)
|
AST_GCC_ATTRIBUTE(deprecated)
|
||||||
AST_GCC_ATTRIBUTE(sentinel)
|
AST_GCC_ATTRIBUTE(sentinel)
|
||||||
AST_GCC_ATTRIBUTE(warn_unused_result)
|
AST_GCC_ATTRIBUTE(warn_unused_result)
|
||||||
AST_GCC_ATTRIBUTE(weakref, [weakref("foo")])
|
AST_GCC_ATTRIBUTE(weakref, [weakref("foo")], static)
|
||||||
AST_GCC_ATTRIBUTE(weak_import)
|
AST_GCC_ATTRIBUTE(weak_import)
|
||||||
|
|
||||||
AC_MSG_CHECKING(for -ffunction-sections support)
|
AC_MSG_CHECKING(for -ffunction-sections support)
|
||||||
|
Reference in New Issue
Block a user