1# -*- mode:python -*- 2 3# Copyright (c) 2013, 2015-2017 ARM Limited 4# All rights reserved. 5# 6# The license below extends only to copyright in the software and shall 7# not be construed as granting a license to any other intellectual 8# property including but not limited to intellectual property relating --- 800 unchanged lines hidden (view full) --- 809 "installing tcmalloc (libgoogle-perftools-dev package "\ 810 "on Ubuntu or RedHat)." + termcap.Normal 811 812 813# Detect back trace implementations. The last implementation in the 814# list will be used by default. 815backtrace_impls = [ "none" ] 816 |
817backtrace_checker = 'char temp;' + \ 818 ' backtrace_symbols_fd((void*)&temp, 0, 0);' 819if conf.CheckLibWithHeader(None, 'execinfo.h', 'C', backtrace_checker): |
820 backtrace_impls.append("glibc") 821elif conf.CheckLibWithHeader('execinfo', 'execinfo.h', 'C', |
822 backtrace_checker): |
823 # NetBSD and FreeBSD need libexecinfo. 824 backtrace_impls.append("glibc") 825 main.Append(LIBS=['execinfo']) 826 827if backtrace_impls[-1] == "none": 828 default_backtrace_impl = "none" 829 print termcap.Yellow + termcap.Bold + \ 830 "No suitable back trace implementation found." + \ --- 433 unchanged lines hidden --- |