Skip to content

Commit

Permalink
SERVER-7080 Add feature test for execinfo functions to repair build o…
Browse files Browse the repository at this point in the history
…f client driver
  • Loading branch information
Andrew Morrow committed Jun 28, 2013
1 parent b975f73 commit bd9ff86
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions distsrc/client/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ for lib in boostLibs:
env['MONGO_BUILD_SASL_CLIENT'] = conf.CheckLibWithHeader(
"sasl2", "sasl/sasl.h", "C", "sasl_version_info(0, 0, 0, 0, 0, 0);", autoadd=False)

if (conf.CheckCXXHeader( "execinfo.h" ) and
conf.CheckDeclaration('backtrace', includes='#include <execinfo.h>') and
conf.CheckDeclaration('backtrace_symbols', includes='#include <execinfo.h>') and
conf.CheckDeclaration('backtrace_symbols_fd', includes='#include <execinfo.h>')):

env.Append( CPPDEFINES=[ "MONGO_HAVE_EXECINFO_BACKTRACE" ] )

conf.Finish()

class InstallSetup:
Expand Down

0 comments on commit bd9ff86

Please sign in to comment.