-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
Open
Labels
2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.mdhttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: haskellGeneral-purpose, statically typed, purely functional programming languageGeneral-purpose, statically typed, purely functional programming language6.topic: llvm/clangIssues related to llvmPackages, clangStdenv and relatedIssues related to llvmPackages, clangStdenv and related
Description
Currently using the lld linker in nix doesn't work correctly.
Executables that it produces have entries in lld being not found (rpaths are missing).
That's because ld and gold have wrappers that do the following:
| # Second, for each directory in the library search path (-L...), |
# First, find all -L... switches.
# Second, for each directory in the library search path (-L...),
# see if it contains a dynamic library used by a -l... flag. If
# so, add the directory to the rpath.
But lld currently doesn't have such a wrapper.
(I found this via See also #24692 (comment).)
Also this type of patch or setting to --enable-new-dtags will likely be needed, and potentially other changes nixpkgs makes to ld and gold.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.mdhttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: haskellGeneral-purpose, statically typed, purely functional programming languageGeneral-purpose, statically typed, purely functional programming language6.topic: llvm/clangIssues related to llvmPackages, clangStdenv and relatedIssues related to llvmPackages, clangStdenv and related