Rust build support doesn't use NIX_LDFLAGS
in link flags
#326944
Labels
0.kind: bug
Something is broken
6.topic: rust
significant
Novel ideas, large API changes, notable refactorings, issues with RFC potential, etc.
Describe the bug
I was trying to use
NIX_LDFLAGS
instead ofLD_LIBRARY_PATH
in ukmm to link extra runtime libraries, but ukmm would silently fail to start: #325139 (comment). I noticed that a bunch of other packages were definingRUSTFLAGS
to handle this, so I just ended up using that instead, but it was surprising to see thatNIX_LDFLAGS
wouldn't work.Steps To Reproduce
Steps to reproduce the behavior:
NIX_LDFLAGS
setNIX_LDFLAGS
don't actually get linked in resulting binariesExpected behavior
NIX_LDFLAGS
should link extra libraries in rust like it does with packages built with c.Notify maintainers
@zowoq @winterqt @figsoda
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.The text was updated successfully, but these errors were encountered: