edencommon: condition shared libraries on platform setting

(cherry picked from commit c8d4e11d1c)
(cherry picked from commit ec5f6a6e29f2d7576c8757cbb7cede71588ae380)
This commit is contained in:
Emily
2024-11-30 15:11:32 +01:00
committed by Vladimír Čunát
parent 2c5a6292a0
commit 9a4458eb89
+6
View File
@@ -54,6 +54,12 @@ stdenv.mkDerivation (finalAttrs: {
(darwinMinVersionHook "11.0")
];
cmakeFlags = [
(lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
(lib.cmakeBool "CMAKE_INSTALL_RPATH_USE_LINK_PATH" true)
];
postPatch = ''
# The CMake build requires the FBThrift Python support even though
# its not used, presumably because of the relevant code having