Unverified Commit c7b13a8c authored by Ben Siraphob's avatar Ben Siraphob Committed by GitHub
Browse files

Merge pull request #319976 from ExpidusOS/fix/pkgsllvm/libbsd

libbsd: fix version script with lld 17+
parents e5e05859 852c13ca
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -35,6 +35,9 @@ stdenv.mkDerivation rec {
    url = "https://gitlab.freedesktop.org/libbsd/libbsd.git";
  };

  # Fix undefined reference errors with version script under LLVM.
  configureFlags = lib.optionals (stdenv.cc.bintools.isLLVM && lib.versionAtLeast stdenv.cc.bintools.version "17") [ "LDFLAGS=-Wl,--undefined-version" ];

  meta = with lib; {
    description = "Common functions found on BSD systems";
    homepage = "https://libbsd.freedesktop.org/";