You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by jo...@apache.org on 2016/07/16 00:58:58 UTC
mesos git commit: CMake: Fixed build in libevent.
Repository: mesos
Updated Branches:
refs/heads/master b1f71f1ba -> d6a2c8783
CMake: Fixed build in libevent.
Static libraries can't be linked to shared libraries unless the static
library is compiled with "Position Independent Code". This adds the
`-fPIC` flag to enable that compilation mode.
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/d6a2c878
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/d6a2c878
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/d6a2c878
Branch: refs/heads/master
Commit: d6a2c8783ee635701cc9d82e1d1ec5a25e851be2
Parents: b1f71f1
Author: Joseph Wu <jo...@apache.org>
Authored: Fri Jul 15 17:53:30 2016 -0700
Committer: Joseph Wu <jo...@apache.org>
Committed: Fri Jul 15 17:54:46 2016 -0700
----------------------------------------------------------------------
3rdparty/CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/d6a2c878/3rdparty/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/3rdparty/CMakeLists.txt b/3rdparty/CMakeLists.txt
index b966e58..a651eed 100755
--- a/3rdparty/CMakeLists.txt
+++ b/3rdparty/CMakeLists.txt
@@ -134,6 +134,7 @@ endif (NOT WIN32)
set(LIBEVENT_CMAKE_ARGS
${LIBEVENT_CMAKE_ARGS}
-LH
+ -DCMAKE_C_FLAGS="-fPIC"
-DEVENT__HAVE_SYS_STAT_H=1
-DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}
)