diff --git a/pkgs/by-name/fo/foundationdb/package.nix b/pkgs/by-name/fo/foundationdb/package.nix index bea37684bd7b..4929c546d61c 100644 --- a/pkgs/by-name/fo/foundationdb/package.nix +++ b/pkgs/by-name/fo/foundationdb/package.nix @@ -107,6 +107,12 @@ stdenv.mkDerivation rec { "-DBUILD_DOCUMENTATION=FALSE" + # Disable the default static linking to libc++, libstdc++ and libgcc. + # + # This leads to various, non-obvious problems as our dependencies bring in + # their own copies of these libraries. + "-DSTATIC_LINK_LIBCXX=FALSE" + # LTO brings up overall build time, but results in much smaller # binaries for all users and the cache. "-DUSE_LTO=ON"