mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
Bug#55647:CMake build rebuilds some libraries twice for embedded
A simple version of the patch : add WITH_PIC to debug compilation. Engines that are not dependent on internal stuff (like THD structure) will not be recompiled for embedded in debug mode. Examples of such engines are : archive, federated, innodb. Engines with dependencies on internals (myisam,heap,myisammrg) will still be fully recompiled.
This commit is contained in:
parent
48b4607590
commit
84662b9804
1 changed files with 5 additions and 0 deletions
|
@ -61,6 +61,11 @@ SET(BUILDTYPE_DOCSTRING
|
|||
|
||||
IF(WITH_DEBUG)
|
||||
SET(CMAKE_BUILD_TYPE "Debug" CACHE STRING ${BUILDTYPE_DOCSTRING} FORCE)
|
||||
IF(UNIX AND NOT APPLE)
|
||||
# Compiling with PIC speeds up embedded build, on PIC sensitive systems
|
||||
# Predefine it to ON, in case user chooses to build embedded.
|
||||
SET(WITH_PIC ON CACHE BOOL "Compile with PIC")
|
||||
ENDIF()
|
||||
SET(OLD_WITH_DEBUG 1 CACHE INTERNAL "" FORCE)
|
||||
ELSEIF(NOT HAVE_CMAKE_BUILD_TYPE OR OLD_WITH_DEBUG)
|
||||
IF(CUSTOM_C_FLAGS)
|
||||
|
|
Loading…
Reference in a new issue