Skip to content

Commit

Permalink
grpc: build shared libs, fixes #58375
Browse files Browse the repository at this point in the history
(cherry picked from commit 93d61e5)
  • Loading branch information
FRidh authored and bjornfor committed Jun 16, 2019
1 parent 41c31b9 commit 3548489
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/development/libraries/grpc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ stdenv.mkDerivation rec {
"-DgRPC_SSL_PROVIDER=package"
"-DgRPC_PROTOBUF_PROVIDER=package"
"-DgRPC_GFLAGS_PROVIDER=package"
"-DBUILD_SHARED_LIBS=ON"
];

# CMake creates a build directory by default, this conflicts with the
Expand All @@ -26,6 +27,10 @@ stdenv.mkDerivation rec {
rm -vf BUILD
'';

preBuild = ''
export LD_LIBRARY_PATH=$(pwd):$LD_LIBRARY_PATH
'';

NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-error=unknown-warning-option";

enableParallelBuilds = true;
Expand Down

0 comments on commit 3548489

Please sign in to comment.