summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVladislav Vaintroub <vvaintroub@koala>2009-11-25 05:13:51 +0100
committerVladislav Vaintroub <vvaintroub@koala>2009-11-25 05:13:51 +0100
commit39a158221ddac1c83766fe0b4635d854a664f262 (patch)
tree26bb5c1d3ec68a6840888eb5cf866fe2396e6a70 /CMakeLists.txt
parent23cd3cec41afcd443a666b614ceb79d726664ead (diff)
downloadmariadb-git-39a158221ddac1c83766fe0b4635d854a664f262.tar.gz
add --disable-shared equivalent
fix mtr (empty argument passed to mysqld)
Diffstat (limited to 'CMakeLists.txt')
-rwxr-xr-xCMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 18c1fca68b7..93d2f0ab457 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -67,11 +67,16 @@ INCLUDE(cmake/plugin.cmake)
INCLUDE(cmake/install_macros.cmake)
# Handle options
+OPTION(DISABLE_SHARED
+ "Don't build shared libraries, compile code as position-dependent" OFF)
+IF(DISABLE_SHARED)
+ SET(WITHOUT_DYNAMIC_PLUGINS 1)
+ENDIF()
OPTION(ENABLED_PROFILING "Enable profiling" ON)
OPTION(CYBOZU "" OFF)
OPTION(BACKUP_TEST "" OFF)
OPTION(WITHOUT_SERVER OFF)
-MARK_AS_ADVANCED(CYBOZU BACKUP_TEST WITHOUT_SERVER)
+MARK_AS_ADVANCED(CYBOZU BACKUP_TEST WITHOUT_SERVER DISABLE_SHARED)
OPTION(ENABLE_DEBUG_SYNC "Enable debug sync (debug builds only)" ON)