]> git.armaanb.net Git - asd-repo.git/blob - core/cmake/patches/cmake-no-execinfo.patch
Adapt for asd linux
[asd-repo.git] / core / cmake / patches / cmake-no-execinfo.patch
1 diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx
2 index ed1cdc0..d3afe21 100644
3 --- a/Source/kwsys/SystemInformation.cxx
4 +++ b/Source/kwsys/SystemInformation.cxx
5 @@ -150,18 +150,8 @@ typedef struct rlimit ResourceLimitType;
6  #  include <OS.h>
7  #endif
8  
9 -#if defined(KWSYS_SYSTEMINFORMATION_HAS_BACKTRACE)
10 -#  include <execinfo.h>
11 -#  if defined(KWSYS_SYSTEMINFORMATION_HAS_CPP_DEMANGLE)
12 -#    include <cxxabi.h>
13 -#  endif
14 -#  if defined(KWSYS_SYSTEMINFORMATION_HAS_SYMBOL_LOOKUP)
15 -#    include <dlfcn.h>
16 -#  endif
17 -#else
18  #  undef KWSYS_SYSTEMINFORMATION_HAS_CPP_DEMANGLE
19  #  undef KWSYS_SYSTEMINFORMATION_HAS_SYMBOL_LOOKUP
20 -#endif
21  
22  #include <cctype> // int isdigit(int c);
23  #include <cstdio>
24 diff --git a/Source/kwsys/kwsysPlatformTestsCXX.cxx b/Source/kwsys/kwsysPlatformTestsCXX.cxx
25 index 0bfa20e..0208417 100644
26 --- a/Source/kwsys/kwsysPlatformTestsCXX.cxx
27 +++ b/Source/kwsys/kwsysPlatformTestsCXX.cxx
28 @@ -102,24 +102,6 @@ int main()
29  }
30  #endif
31  
32 -#ifdef TEST_KWSYS_CXX_HAS_BACKTRACE
33 -#  if defined(__PATHSCALE__) || defined(__PATHCC__) ||                        \
34 -    (defined(__LSB_VERSION__) && (__LSB_VERSION__ < 41))
35 -backtrace does not work with this compiler or os
36 -#  endif
37 -#  if (defined(__GNUC__) || defined(__PGI)) && !defined(_GNU_SOURCE)
38 -#    define _GNU_SOURCE
39 -#  endif
40 -#  include <execinfo.h>
41 -int main()
42 -{
43 -  void* stackSymbols[256];
44 -  backtrace(stackSymbols, 256);
45 -  backtrace_symbols(&stackSymbols[0], 1);
46 -  return 0;
47 -}
48 -#endif
49 -
50  #ifdef TEST_KWSYS_CXX_HAS_DLADDR
51  #  if (defined(__GNUC__) || defined(__PGI)) && !defined(_GNU_SOURCE)
52  #    define _GNU_SOURCE