fb303: condition shared libraries on platform setting

(cherry picked from commit 72f24cc293)
This commit is contained in:
Emily 2024-11-14 03:11:55 +00:00 committed by github-actions[bot]
parent 4567e56a7f
commit a95aa410a8

View File

@ -48,6 +48,10 @@ stdenv.mkDerivation (finalAttrs: {
];
cmakeFlags = [
(lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
(lib.cmakeBool "CMAKE_INSTALL_RPATH_USE_LINK_PATH" true)
(lib.cmakeBool "PYTHON_EXTENSIONS" false)
];