657a658,660
> if sys.platform.startswith('freebsd'):
> main.Append(CCFLAGS=['-I/usr/local/include'])
> main.Append(CXXFLAGS=['-I/usr/local/include'])
773a777,780
> # On FreeBSD we need libthr.
> if sys.platform.startswith('freebsd'):
> main.Append(LIBS=['thr'])
>
887,888c894,899
< timeout_lines = readCommand(['timeout', '--version'],
< exception='').splitlines()
---
> if sys.platform.startswith('freebsd'):
> timeout_lines = readCommand(['gtimeout', '--version'],
> exception='').splitlines()
> else:
> timeout_lines = readCommand(['timeout', '--version'],
> exception='').splitlines()
1085a1097,1101
> elif conf.CheckLibWithHeader('execinfo', 'execinfo.h', 'C',
> 'backtrace_symbols_fd((void*)0, 0, 0);'):
> # NetBSD and FreeBSD need libexecinfo.
> backtrace_impls.append("glibc")
> main.Append(LIBS=['execinfo'])