Attempt to fix execinfo lookup on BSD
This commit is contained in:
parent
34c29ea88b
commit
9d407eebf0
1 changed files with 5 additions and 2 deletions
|
@ -31,8 +31,11 @@ if(BACKTRACE_LIBC)
|
||||||
set(BACKTRACE_L_FLAGS "-rdynamic")
|
set(BACKTRACE_L_FLAGS "-rdynamic")
|
||||||
else()
|
else()
|
||||||
pkg_check_modules( UNWIND libunwind )
|
pkg_check_modules( UNWIND libunwind )
|
||||||
pkg_check_modules( EXECINFO execinfo )
|
find_library(EXECINFO_LIBRARIES NAMES execinfo)
|
||||||
set(BACKTRACE_L_FLAGS "")
|
if(EXECINFO_LIBRARIES)
|
||||||
|
set(EXECINFO_FOUND TRUE)
|
||||||
|
set(BACKTRACE_L_FLAGS "-rdynamic")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if( ENABLE_RSVG )
|
if( ENABLE_RSVG )
|
||||||
|
|
Loading…
Reference in a new issue