Commit 7d831bec authored by Kornelijus Survila's avatar Kornelijus Survila
Browse files

foundationdb: do not statically link libcxx/libstdc++/libgcc

FDB defaults to statically linking libcxx, libstdc++, and libgcc. This leads
to non-obvious problems when the dependencies bring in their own copies. Do
not do that as we're not trying to build and package portable binaries.

Fixes #319537.
Fixes #378888.
parent c2645bc8
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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"