aboutsummaryrefslogtreecommitdiffstats
path: root/non-free/mongodb/fix-backtrace.patch
blob: 67cb7ca4223b5f39e025e32d60eb960964f1c5b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- mongodb-src-r3.6.1/SConstruct.orig
+++ mongodb-src-r3.6.1/SConstruct
@@ -2896,7 +2896,8 @@
     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>')):
+        conf.CheckDeclaration('backtrace_symbols_fd', includes='#include <execinfo.h>') and
+	conf.CheckFunc('backtrace')):
 
         conf.env.SetConfigHeaderDefine("MONGO_CONFIG_HAVE_EXECINFO_BACKTRACE")