Unverified Commit 43631839 authored by Wolfgang Walther's avatar Wolfgang Walther Committed by GitHub
Browse files

tdb: move NIX_LDFLAGS into env for structuredAttrs (#486089)

parents 2ceaa350 8dddc1fa
Loading
Loading
Loading
Loading
+12 −9
Original line number Diff line number Diff line
@@ -83,15 +83,18 @@ stdenv.mkDerivation rec {
    else
      null;

  env = {
    # python-config from build Python gives incorrect values when cross-compiling.
    # If python-config is not found, the build falls back to using the sysconfig
    # module, which works correctly in all cases.
    PYTHON_CONFIG = "/invalid";

  }
  //
    lib.optionalAttrs (stdenv.cc.bintools.isLLVM && lib.versionAtLeast stdenv.cc.bintools.version "17")
      {
        # https://reviews.llvm.org/D135402
  NIX_LDFLAGS = lib.optional (
    stdenv.cc.bintools.isLLVM && lib.versionAtLeast stdenv.cc.bintools.version "17"
  ) "--undefined-version";
        NIX_LDFLAGS = "--undefined-version";
      };

  meta = {
    description = "Trivial database";