You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by an...@apache.org on 2018/04/05 20:56:15 UTC
[2/4] mesos git commit: Linked execinfo in Glog build on FreeBSD.
Linked execinfo in Glog build on FreeBSD.
Review: https://reviews.apache.org/r/66385/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/ab65ffbc
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/ab65ffbc
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/ab65ffbc
Branch: refs/heads/master
Commit: ab65ffbcd5d0055688251cb12ff6efd1c21d9e22
Parents: 2a503da
Author: David Forsythe <df...@gmail.com>
Authored: Thu Apr 5 13:41:32 2018 -0700
Committer: Andrew Schwartzmeyer <an...@schwartzmeyer.com>
Committed: Thu Apr 5 13:41:32 2018 -0700
----------------------------------------------------------------------
3rdparty/CMakeLists.txt | 3 +++
cmake/CompilationConfigure.cmake | 3 +++
2 files changed, 6 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/ab65ffbc/3rdparty/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/3rdparty/CMakeLists.txt b/3rdparty/CMakeLists.txt
index 9d0fd55..3854a16 100644
--- a/3rdparty/CMakeLists.txt
+++ b/3rdparty/CMakeLists.txt
@@ -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)
http://git-wip-us.apache.org/repos/asf/mesos/blob/ab65ffbc/cmake/CompilationConfigure.cmake
----------------------------------------------------------------------
diff --git a/cmake/CompilationConfigure.cmake b/cmake/CompilationConfigure.cmake
index 64cc56e..3cb072d 100644
--- a/cmake/CompilationConfigure.cmake
+++ b/cmake/CompilationConfigure.cmake
@@ -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.
########################