Bug 1391127 Add -lm for brotli when compiling with gcc for Windows draft
authorTom Ritter <tom@mozilla.com>
Fri, 18 Aug 2017 10:30:55 -0500
changeset 649082 4c51653dd44b8c81ccfcf6575771e9da7e3b5e86
parent 648937 b61d405c98eb003e4d0461e8e4e21462b71242f9
child 649092 f973cc350ce40372b317040f4f638354e4eda313
child 649187 4f45779137dc3732b6f655878cca268a61839356
push id74944
push userbmo:tom@mozilla.com
push dateFri, 18 Aug 2017 15:31:43 +0000
bugs1391127
milestone57.0a1
Bug 1391127 Add -lm for brotli when compiling with gcc for Windows MozReview-Commit-ID: HBficJlFKSH
modules/brotli/enc/fast_log.h
modules/brotli/moz.build
old mode 100644
new mode 100755
--- a/modules/brotli/moz.build
+++ b/modules/brotli/moz.build
@@ -49,12 +49,12 @@ HOST_SOURCES += [
     'enc/literal_cost.c',
     'enc/memory.c',
     'enc/metablock.c',
     'enc/static_dict.c',
     'enc/utf8_util.c',
     'tools/bro.c',
 ]
 
-if CONFIG['OS_TARGET'] != 'WINNT':
+if CONFIG['HOST_CC_TYPE'] not in ('msvc', 'clang-cl'):
     HOST_OS_LIBS += [
         'm' # for log2() function used by Brotli encoder
     ]