Merge pull request #21416 from cstrahan/mesos-1.1.0
mesos: 1.0.1 -> 1.1.0
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ stdenv, version, src
|
||||
{ stdenv, lib, version, src
|
||||
, autoreconfHook, zlib, gtest
|
||||
, ...
|
||||
}:
|
||||
@@ -21,6 +21,26 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [ autoreconfHook zlib ];
|
||||
|
||||
# The generated C++ code uses static initializers which mutate a global data
|
||||
# structure. This causes problems for an executable when:
|
||||
#
|
||||
# 1) it dynamically links to two libs, both of which contain generated C++ for
|
||||
# the same proto file, and
|
||||
# 2) the two aforementioned libs both dynamically link to libprotobuf.
|
||||
#
|
||||
# One solution is to statically link libprotobuf, that way the global
|
||||
# variables are not shared; in fact, this is necessary for the python Mesos
|
||||
# binding to not crash, as the python lib contains two C extensions which
|
||||
# both refer to the same proto schema.
|
||||
#
|
||||
# See: https://github.com/NixOS/nixpkgs/pull/19064#issuecomment-255082684
|
||||
# https://github.com/google/protobuf/issues/1489
|
||||
dontDisableStatic = true;
|
||||
configureFlags = [
|
||||
"CFLAGS=-fPIC"
|
||||
"CXXFLAGS=-fPIC"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = {
|
||||
|
||||
Reference in New Issue
Block a user