Skip to content

Commit

Permalink
Linked execinfo in Glog build on FreeBSD.
Browse files Browse the repository at this point in the history
  • Loading branch information
dforsyth authored and andyleejordan committed Apr 5, 2018
1 parent 2a503da commit ab65ffb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions 3rdparty/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,9 @@ if (WIN32)
else ()
# TODO(andschwa): Build with CMake instead when glog is updated.
set(GLOG_CONFIG_CMD ${GLOG_ROOT}/src/../configure --with-pic GTEST_CONFIG=no --prefix=${GLOG_ROOT}-build)
if (FREEBSD)
list(APPEND GLOG_CONFIG_CMD LDFLAGS=-lexecinfo)
endif ()
set(GLOG_BUILD_CMD ${MAKE_PROGRAM})
set(GLOG_INSTALL_CMD ${MAKE_PROGRAM} install)

Expand Down
3 changes: 3 additions & 0 deletions cmake/CompilationConfigure.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ endif()
######################
string(COMPARE EQUAL ${CMAKE_SYSTEM_NAME} "Linux" LINUX)

# FREEBSD CONFIGURATION.
######################
string(COMPARE EQUAL ${CMAKE_SYSTEM_NAME} "FreeBSD" FREEBSD)

# WINDOWS CONFIGURATION.
########################
Expand Down

0 comments on commit ab65ffb

Please sign in to comment.