https://origsvn.digium.com/svn/asterisk/trunk
........
r192132 | tilghman | 2009-05-04 13:42:56 -0500 (Mon, 04 May 2009) | 6 lines
Pass libraries in LIBS, not LDFLAGS.
(closes issue #14671)
Reported by: Chainsaw
Patches:
asterisk-1.6.0.6-toolcheck-libs-not-ldflags.patch uploaded by Chainsaw (license 723)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@192134
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
fi
CPPFLAGS="${CPPFLAGS} ${$1_INCLUDE}"
- saved_ldflags="${LDFLAGS}"
- LDFLAGS="${$1_LIB}"
+ saved_libs="${LIBS}"
+ LIBS="${$1_LIB}"
AC_LINK_IFELSE(
[ AC_LANG_PROGRAM( [ $5 ],
[]
)
CPPFLAGS="${saved_cppflags}"
- LDFLAGS="${saved_ldflags}"
+ LIBS="${saved_libs}"
else
PBX_$1=1
AC_DEFINE([HAVE_$1], 1, [Define if your system has the $1 libraries.])