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/11/29 00:20:50 UTC

[21/23] mesos git commit: CMake: Added -fPIC to leveldb build.

CMake: Added -fPIC to leveldb build.

Leveldb is built statically (this is not configurable).
This supplies the `-fPIC` compiler option as well as the default
options used by leveldb (`-O2 -g`).

Review: https://reviews.apache.org/r/53769/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/e9f3101e
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/e9f3101e
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/e9f3101e

Branch: refs/heads/master
Commit: e9f3101ed60fdd128ca08eeca167f442b584f810
Parents: 68fcd68
Author: Joseph Wu <jo...@mesosphere.io>
Authored: Mon Nov 28 15:32:48 2016 -0800
Committer: Joseph Wu <jo...@apache.org>
Committed: Mon Nov 28 15:40:07 2016 -0800

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


http://git-wip-us.apache.org/repos/asf/mesos/blob/e9f3101e/3rdparty/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/3rdparty/CMakeLists.txt b/3rdparty/CMakeLists.txt
index cece6b5..a340b29 100755
--- a/3rdparty/CMakeLists.txt
+++ b/3rdparty/CMakeLists.txt
@@ -429,7 +429,7 @@ ExternalProject_Add(
 
 if (NOT WIN32)
   set(LEVELDB_CONFIG_CMD  cd ${LEVELDB_ROOT} && ./configure --prefix=${LEVELDB_ROOT}-lib)
-  set(LEVELDB_BUILD_CMD   cd ${LEVELDB_ROOT} && make)
+  set(LEVELDB_BUILD_CMD   cd ${LEVELDB_ROOT} && make OPT=-O2\ -g\ -fPIC)
   set(LEVELDB_INSTALL_CMD cd ${LEVELDB_ROOT} && make install)
   PATCH_CMD(
     ${MESOS_3RDPARTY_SRC}/leveldb-${LEVELDB_VERSION}.patch