-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
win-dll-link: Fix to look for DLLs in lib/ #38632
base: master
Are you sure you want to change the base?
Conversation
Thanks, @Ericson2314! I'll try and give this a try tomorrow. |
Hi @Ericson2314, Sadly the script fails to run: The important bit
The whole thing:
Also, it's not clear from a quick browse of the new script that it will look in |
I don't have the time at the moment to take this over, sorry |
@expipiplus1 I fixed some things in the script, but the next problem is |
fb8621e
to
61588a9
Compare
Thanks for the hard work John, sadly this doesn't fix the original issue. I think because the libraries are in that strange pc-mingw directory. |
Oh! I think I know the solution now! We go backwards from |
DLLs are symlinked bin/ for the exes that use them, but they should always be installed in lib/ for sake of regularity and multiple outputs. Fix NixOS#38451
Ah, it still doesn't work. ld-wrapper adds some mod |
61588a9
to
409e07c
Compare
This will be very useful for bootstrapping, eventually.
What is the status of this pull request? |
Closing due to lack of activity, feel free re-open this if needed. |
I'm starting this up again and trying to make it work, and I'm finding that the To be clear, I checked the state of the Does anyone have guidance? In particular
|
Okay, so if I just manually force it to use the There are still a few libraries that aren't picked up. The main one seems to be |
Oh, I take it back. I was reading the output wrong. |
I'm seeing that |
I marked this as stale due to inactivity. → More info |
#252459 a similar change was merged |
Great! I think I'll keep this draft to someday rebase and double-check how it might differ/not-differ, but not sure when I'll get around to that either. |
local outName | ||
for outName in $outputs; do | ||
addToSearchPath DLLPATH "${!outName}/bin" | ||
addToSearchPath outputsDllPath "${!outName}/lib64" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the new PR does not check lib64
Here's a draft of what needs to be done. I don't really have time to test it so if one of you could take this over that would be great.
Motivation for this change
DLLs are symlinked bin/ for the exes that use them, but they should always be installed in lib/ for sake of regularity and multiple outputs.
Fix #38451
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)CC @expipiplus1 @angerman @dtzWill