Allow to use backtrace(3) external library for kdebug #103
Merged
MicheleC
merged 2 commits from feat/add-libexecinfo-support
into master
4 years ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'feat/add-libexecinfo-support'
Deleting a branch is permanent. It CANNOT be undone. Continue?
tested with BSD licence libexecinfo
Looks good to me!
#cmakedefine HAVE_STRVERCMP_PROTO 1
/* Define to 1 if execinfo.h exists and defines backtrace (GLIBC >= 2.1) */
/* Define to 1 if backtrace information library */
Could you add "exists" to the comment?
It should be "... if you have backtrace ...", as my local patch... :-(
set ( Backtrace_HEADER "execinfo.h" )
endif ()
else ()
find_package( Backtrace )
Maybe I am asking a stupid question, forgive my ignorance. Why are we using "Backtrace" with capital 'B'?
I assume that capital 'B' is because the file itself is called
FindBacktrace.cmake
.Yes, from the spec of find_package(), find_package( Backtrace ) will find
FindBacktrace.cmake
orbacktrace-config.cmake
.ok, thanks for the explanation Obata-san.
Test on FreeBSD:
The test on Wheezy (CMake 2.8.x) and Stretch (CMake 3.7.x) is fine, but the test on FreeBSD ends with FTBFS. See comment above.
FTBFS on FreeBSD (with external library for backtrace) resolved in commit
59debdf4f0
.Successfully tested on DEB distributions and on FreeBSD.
Looks good to me 👍
59debdf4f0
into master 4 years agoThanks Obata for the PR and Slavek for testing and fixing in FreeBSD.
Sorry, I missed to add the diff for CMakeLists.txt in this PR.
It is because I don't have master branch test environment, just backported to master from patchset for release taball manually.
No worries Obata-san, keep up the excellent work you are doing 😄 It is very much appreciated.
Reviewers
59debdf4f0
.