diff options
-rw-r--r-- | libsanitizer/ChangeLog | 5 | ||||
-rwxr-xr-x | libsanitizer/configure | 2 | ||||
-rw-r--r-- | libsanitizer/configure.ac | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/libsanitizer/ChangeLog b/libsanitizer/ChangeLog index 0af33d012ed..5d02ec36e28 100644 --- a/libsanitizer/ChangeLog +++ b/libsanitizer/ChangeLog @@ -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. diff --git a/libsanitizer/configure b/libsanitizer/configure index e5c320604d3..6db2a1fc758 100755 --- a/libsanitizer/configure +++ b/libsanitizer/configure @@ -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 diff --git a/libsanitizer/configure.ac b/libsanitizer/configure.ac index 7f9327904da..3c87984b2da 100644 --- a/libsanitizer/configure.ac +++ b/libsanitizer/configure.ac @@ -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 |