Commit 50db0312 authored by Thomas Fehér's avatar Thomas Fehér Committed by Justin M. Keyes

build: ensure static jemalloc. #3970

Otherwise the dynamic library is built also and find_library will prefer
that over the static one. That results in linking against the dynamic
library which will not be found after install.

This code:
  https://github.com/neovim/neovim/blob/8b3c399b6d7f4a277d80da4b29349fed944f7d46/third-party/CMakeLists.txt#L130
should prevent the above problem, but it doesn't hurt to be explicit.
parent c1544622
......@@ -19,6 +19,6 @@ ExternalProject_Add(jemalloc
CONFIGURE_COMMAND ${DEPS_BUILD_DIR}/src/jemalloc/configure
CC=${DEPS_C_COMPILER} --prefix=${DEPS_INSTALL_DIR}
BUILD_COMMAND ""
INSTALL_COMMAND ${MAKE_PRG} install_include install_lib)
INSTALL_COMMAND ${MAKE_PRG} install_include install_lib_static)
list(APPEND THIRD_PARTY_DEPS jemalloc)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment