Add -lm to link_sanitizer_common

* configure.ac (link_sanitizer_common): Add -lm.
	* configure: Regenerated.

From-SVN: r205710
This commit is contained in:
H.J. Lu 2013-12-05 14:41:38 +00:00 committed by H.J. Lu
parent 1c0f1f4652
commit df9d1700f1
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2013-12-05 H.J. Lu <hongjiu.lu@intel.com>
* configure.ac (link_sanitizer_common): Add -lm.
* configure: Regenerated.
2013-12-05 Kostya Serebryany <kcc@google.com>
* All source files: Merge from upstream r196489.

View File

@ -14564,7 +14564,7 @@ done
# Common libraries that we need to link against for all sanitizer libs.
link_sanitizer_common='-lpthread -ldl'
link_sanitizer_common='-lpthread -ldl -lm'
# Set up the set of additional libraries that we need to link against for libasan.
link_libasan=$link_sanitizer_common

View File

@ -87,7 +87,7 @@ AM_CONDITIONAL(LSAN_SUPPORTED, [test "x$LSAN_SUPPORTED" = "xyes"])
AC_CHECK_FUNCS(clock_getres clock_gettime clock_settime)
# Common libraries that we need to link against for all sanitizer libs.
link_sanitizer_common='-lpthread -ldl'
link_sanitizer_common='-lpthread -ldl -lm'
# Set up the set of additional libraries that we need to link against for libasan.
link_libasan=$link_sanitizer_common