folly: condition shared libraries on platform setting
(cherry picked from commit cad3e3ece6)
(cherry picked from commit d0c2ddc592e377347d29be520d8cab5e75d5d602)
This commit is contained in:
@@ -86,7 +86,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
propagatedBuildInputs = lib.optional stdenv.hostPlatform.isLinux jemalloc;
|
||||
|
||||
cmakeFlags = [
|
||||
"-DBUILD_SHARED_LIBS=ON"
|
||||
(lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
|
||||
|
||||
# Folly uses these instead of the standard CMake variables for some reason.
|
||||
(lib.cmakeFeature "INCLUDE_INSTALL_DIR" "${placeholder "dev"}/include")
|
||||
|
||||
Reference in New Issue
Block a user