diff options
author | Vladislav Vaintroub <wlad@montyprogram.com> | 2012-05-04 14:02:35 +0200 |
---|---|---|
committer | Vladislav Vaintroub <wlad@montyprogram.com> | 2012-05-04 14:02:35 +0200 |
commit | ab589043670145c95ff372021bab19464b6036e2 (patch) | |
tree | 8e0f78653436b2c86704ff661d80b482b8b2b1f7 /cmake/os | |
parent | e3ffaed1474971b656a3c77dc1d2605a5dbf02f6 (diff) | |
download | mariadb-git-ab589043670145c95ff372021bab19464b6036e2.tar.gz |
Fix FreeBSD test errors. Also link with libexecinfo on FreeBSD for stacktrace functionality.
Diffstat (limited to 'cmake/os')
-rw-r--r-- | cmake/os/FreeBSD.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/os/FreeBSD.cmake b/cmake/os/FreeBSD.cmake index 9bc7d944da2..27afe679f25 100644 --- a/cmake/os/FreeBSD.cmake +++ b/cmake/os/FreeBSD.cmake @@ -23,6 +23,15 @@ # The below was used for really old versions of FreeBSD, roughly: before 5.1.9 # ADD_DEFINITIONS(-DHAVE_BROKEN_REALPATH) +# Find libexecinfo (library that contains backtrace_symbols etc) +INCLUDE_DIRECTORIES(/usr/local/include) +SET(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} /usr/local/include ) +SET(ENV{LIB} "$ENV{LIB}:/usr/local/lib") +FIND_LIBRARY(EXECINFO NAMES execinfo) +IF(EXECINFO) + SET(LIBEXECINFO ${EXECINFO}) +ENDIF() + # Use atomic builtins IF(CMAKE_SIZEOF_VOID_P EQUAL 4 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "i386") SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=i686") |