Commit c27c3257 authored by Jörg Thalheim's avatar Jörg Thalheim
Browse files

nix: remove deprecated fuse-ld=gold linker

Binutils deprecated the gold linker, so do we.
We already did this a while ago in the nix repository since we switched to mold for development.
parent 9e95acea
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -151,18 +151,6 @@ let
    ];
    separateDebugInfo = !stdenv.hostPlatform.isStatic;
    hardeningDisable = lib.optional stdenv.hostPlatform.isStatic "pie";
    env =
      prevAttrs.env or { }
      // lib.optionalAttrs (
        stdenv.isLinux
        && !(stdenv.hostPlatform.isStatic && stdenv.system == "aarch64-linux")
        && !(
          stdenv.buildPlatform.config != stdenv.hostPlatform.config
          && stdenv.hostPlatform.system == "powerpc64-linux"
        )
        && !(stdenv.system == "loongarch64-linux")
        && !(stdenv.hostPlatform.useLLVM or false)
      ) { LDFLAGS = "-fuse-ld=gold"; };
  };

  mesonLibraryLayer = finalAttrs: prevAttrs: {