-
Notifications
You must be signed in to change notification settings - Fork 478
Various tidy-ups and build fixes #274
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
Conversation
…a proper libwdi API
Thanks for the PR! Please find my comments below:
|
I quite understand your comment. I should have mentioned in my merge request that I'm trying to fix issues affecting the shared library build. Sorry for the confusion. It has been a while since I wrote these patches. As you can see, there are linker errors affecting the zadig build, because the Windows Version and Architecture code isn't explicitly exported:
In other words, even though you don't want libwdi to expose these APIs, it currently does do so implicitly in the static build because the code is reused. This patch simply makes these APIs explicit. Do you have any thoughts about an alternative approach?
The reason for this is that without the fix I get a linker error in the MSYS2 MinGW x64 build environment:
Given that libtool is wrapping the linker and the resource compiler, we have the |
@pbatard Did you have time to have a closer look at this yet? Are there any changes you would like to see? |
Yeah, sorry for the delay, but I'm afraid that libwdi has become a low priority project for me. I'm basically waiting to have nothing with higher priority to take a proper look at this... which I don't think is going to happen at least before Rufus 3.21 is out. |
Makes sense. The project is mostly done - except for a few portability improvements like the ones you see here. I'd like to get these changes in. I think they're a good improvement to the build system, and each patch is fairly self-contained, so could be cherry-picked individually. As for |
With my apologies for taking so long to finally work on this PR, the various issues you highlighted above should now be fixed. Please don't hesitate to let me know if you are still experiencing problems, and thanks again for your contribution! |
* When building a shared library, libtool prouces _rc.lo instead of _rc.o => Call windres directly. * Addresses part of #274. * Also fix sed's mishandling of CRLFs...
* Duplicate the Windows version lookup since we don't want to export the API. * Addresses part of #274.
This patch-set includes various build fixes that were needed to build libwdi inside Msys2.