Bug 1399679 - Disable math inlines on Linux x86
On CentOS 6, the glibc headers only have math.h inlines for the signbit
function. On Debian wheezy, they have much more, including ceil and
floor, which changes the codegen for every place ceil or floor are used,
since call to libm functions are replaced with inline code.
--- a/moz.configure
+++ b/moz.configure
@@ -543,16 +543,20 @@ def nsis_flags(host):
if host.kernel != 'WINNT':
return '-nocd'
return ''
set_config('MAKENSISU_FLAGS', nsis_flags)
check_prog('7Z', ('7z', '7za'), allow_missing=True, when=target_is_windows)
+set_define(
+ '__NO_MATH_INLINES', True,
+ when=depends(target)(lambda t: t.kernel == 'Linux' and t.cpu == 'x86'))
+
# Fallthrough to autoconf-based configure
include('build/moz.configure/old.configure')
@imports('__sandbox__')
def all_paths():
return __sandbox__._all_paths
set_config('ALL_CONFIGURE_PATHS', all_paths())