summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorTad Marshall <tad@10gen.com>2013-06-20 11:53:23 -0400
committerTad Marshall <tad@10gen.com>2013-07-18 14:29:19 -0400
commit66f4a37277cc2f309851e525e3392a20295cf737 (patch)
treead8f9c25f8c5ddf4829c8d71a8c442d409f1d2de /SConstruct
parent4d4790146b76d8e65caa9fc9c34dc4263e0539a9 (diff)
downloadmongo-66f4a37277cc2f309851e525e3392a20295cf737.tar.gz
SERVER-7080 Link to backtrace, backtrace_symbols and backtrace_symbols_fd at runtime
Do not make direct calls to backtrace, backtrace_symbols or backtrace_symbols_fd, which are present in Solaris 11 but not in Solaris 10. Instead, see if they are available in a loaded library (which will be libc.so.1) at runtime and either call them or call an emulation.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct3
1 files changed, 2 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 5fb0e83f492..69a374693bc 100644
--- a/SConstruct
+++ b/SConstruct
@@ -839,7 +839,8 @@ def doConfigure(myenv):
if (conf.CheckCXXHeader( "execinfo.h" ) and
conf.CheckDeclaration('backtrace', includes='#include <execinfo.h>') and
- conf.CheckDeclaration('backtrace_symbols', includes='#include <execinfo.h>')):
+ conf.CheckDeclaration('backtrace_symbols', includes='#include <execinfo.h>') and
+ conf.CheckDeclaration('backtrace_symbols_fd', includes='#include <execinfo.h>')):
myenv.Append( CPPDEFINES=[ "MONGO_HAVE_EXECINFO_BACKTRACE" ] )