[asterisk-commits] tilghman: trunk r276908 - in /trunk: configure configure.ac
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jul 16 00:38:10 CDT 2010
Author: tilghman
Date: Fri Jul 16 00:38:06 2010
New Revision: 276908
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=276908
Log:
Detect the --dynamic-list flag a bit better
Modified:
trunk/configure
trunk/configure.ac
Modified: trunk/configure.ac
URL: http://svnview.digium.com/svn/asterisk/trunk/configure.ac?view=diff&rev=276908&r1=276907&r2=276908
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Fri Jul 16 00:38:06 2010
@@ -482,7 +482,12 @@
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_SUBST(PBX_DYNAMIC_LIST)
LDFLAGS=${old_LDFLAGS}
+rm -f conftest.dynamics
AC_CHECK_HEADER([sys/poll.h],
[HAS_POLL=1]
More information about the asterisk-commits
mailing list