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/15 21:58:23 UTC

[2/3] mesos git commit: CMake: Fixed build in libprocess.

CMake: Fixed build in libprocess.

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/d2308f69
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/d2308f69
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/d2308f69

Branch: refs/heads/master
Commit: d2308f695836ebfbdb9d063662a46e446826e3b5
Parents: 165a6c7
Author: Joseph Wu <jo...@apache.org>
Authored: Fri Jul 15 14:51:58 2016 -0700
Committer: Joseph Wu <jo...@apache.org>
Committed: Fri Jul 15 14:57:01 2016 -0700

----------------------------------------------------------------------
 3rdparty/libprocess/src/CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/d2308f69/3rdparty/libprocess/src/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/CMakeLists.txt b/3rdparty/libprocess/src/CMakeLists.txt
index 6641acf..d1547ef 100644
--- a/3rdparty/libprocess/src/CMakeLists.txt
+++ b/3rdparty/libprocess/src/CMakeLists.txt
@@ -92,6 +92,7 @@ set_target_properties(
   ${PROCESS_TARGET} PROPERTIES
   VERSION ${PROCESS_PACKAGE_VERSION}
   SOVERSION ${PROCESS_PACKAGE_SOVERSION}
+  COMPILE_FLAGS "-fPIC"
   )
 add_dependencies(${PROCESS_TARGET} ${PROCESS_DEPENDENCIES})