aboutsummaryrefslogtreecommitdiffstats
path: root/main/cmake/fix-execinfo.h-detection.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/cmake/fix-execinfo.h-detection.patch')
-rw-r--r--main/cmake/fix-execinfo.h-detection.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/cmake/fix-execinfo.h-detection.patch b/main/cmake/fix-execinfo.h-detection.patch
new file mode 100644
index 0000000000..4fdf830cdf
--- /dev/null
+++ b/main/cmake/fix-execinfo.h-detection.patch
@@ -0,0 +1,11 @@
+--- cmake-2.8.11.2/Source/kwsys/SystemInformation.cxx
++++ cmake-2.8.11.2/Source/kwsys/SystemInformation.cxx
+@@ -130,7 +130,7 @@
+ # define KWSYS_SYSTEMINFORMATION_IMPLEMENT_FQDN
+ # endif
+ # endif
+-# if defined(__GNUC__)
++# if defined(__GNUC__) && defined(__GLIBC__)
+ # include <execinfo.h>
+ # if !(defined(__LSB_VERSION__) && __LSB_VERSION__ < 41)
+ # define KWSYS_SYSTEMINFORMATION_HAVE_BACKTRACE