rapidcheck: Build shared/static following defaults
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user