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

libbsd: fix version script with lld 17+
This commit is contained in:
Ben Siraphob 2024-06-16 07:37:10 +00:00 committed by GitHub
commit c7b13a8c00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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/";