diff options
author | Ben Siraphob <bensiraphob@gmail.com> | 2024-06-16 07:37:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-16 07:37:10 +0000 |
commit | c7b13a8c00d2865c0bc2449c8a7840022e193259 (patch) | |
tree | b4a4515d45294974746aba2835d52c36b003c887 /pkgs | |
parent | e5e05859f1f0c62c50ba73fc1580d208f1995bc5 (diff) | |
parent | 852c13ca9b6806ce54855f4c1b138662ed47b72d (diff) |
Merge pull request #319976 from ExpidusOS/fix/pkgsllvm/libbsd
libbsd: fix version script with lld 17+
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/libraries/libbsd/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libbsd/default.nix b/pkgs/development/libraries/libbsd/default.nix index 9e80d17b8a033..fa8b6b65950bc 100644 --- a/pkgs/development/libraries/libbsd/default.nix +++ b/pkgs/development/libraries/libbsd/default.nix @@ -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/"; |