-
-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Open
Labels
6.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
.
basvandijk, jb55, chshersh, taktoa, domenkozar and 24 more
Metadata
Metadata
Assignees
Labels
6.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