mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-21 01:01:02 +00:00
Detect the --dynamic-list flag a bit better
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@276908 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -482,7 +482,12 @@ AC_LINK_IFELSE(
|
||||
|
||||
AC_MSG_CHECKING(for a version of GNU ld that supports the --dynamic-list flag)
|
||||
old_LDFLAGS=${LDFLAGS}
|
||||
LDFLAGS+="-Wl,--dynamic-list,main/asterisk.dynamics"
|
||||
cat >conftest.dynamics <<_ACEOF
|
||||
{
|
||||
*ast_*;
|
||||
};
|
||||
_ACEOF
|
||||
LDFLAGS="${LDFLAGS} -Wl,--dynamic-list,conftest.dynamics"
|
||||
PBX_DYNAMIC_LIST=0
|
||||
AC_LINK_IFELSE(
|
||||
AC_LANG_PROGRAM([], []),
|
||||
@@ -492,6 +497,7 @@ AC_LINK_IFELSE(
|
||||
)
|
||||
AC_SUBST(PBX_DYNAMIC_LIST)
|
||||
LDFLAGS=${old_LDFLAGS}
|
||||
rm -f conftest.dynamics
|
||||
|
||||
AC_CHECK_HEADER([sys/poll.h],
|
||||
[HAS_POLL=1]
|
||||
|
||||
Reference in New Issue
Block a user