Skip to content

Commit

Permalink
rapidcheck: Build shared/static following defaults
Browse files Browse the repository at this point in the history
CMake defaults to static which is not what we want. It is
especially dangerous because this library has global variables ---
embedding multiple copies in downstream shared objects used by the same
final executable will cause problems.
  • Loading branch information
Ericson2314 committed Nov 21, 2023
1 parent a9f295e commit b2b9257
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/development/libraries/rapidcheck/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ cmake ];

cmakeFlags = [
(lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
];

# Install the extras headers
postInstall = ''
cp -r $src/extras $out
Expand Down

0 comments on commit b2b9257

Please sign in to comment.