-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Autodesk: Build with zlib static library #3130
base: dev
Are you sure you want to change the base?
Autodesk: Build with zlib static library #3130
Conversation
Filed as internal issue #USD-9779 |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
A related issue is that we only need Zlib to build on Windows. Does this affect your PR at all? #2988 |
Would you only need to support static builds on Windows? Or would you need to support them on Linux and Mac too, where the OS vends it? |
We would like to support static builds on Windows, Mac and Linux. |
Okay. Just a few more questions: 1.If I understand the change correctly, this would make it always statically linked. I think many of us would still prefer to use dynamic linking, especially on platforms where the OS provides it.
|
We propose this because when an application uses usd with dynamic zlib library of version A, and the application itself also dynamic links zlib libraries with version B, if version A and B are not compatible then the problem occurs. Use static libraries can avoid the problem. But it indeed may result in multiple runtime copies of it. |
I think this would need to be an option perhaps? I don't agree with the approach of making this a default as I think being dynamically provided by the OS is the more preferable option for a wider range of uses. |
I agree that it needs to be optional 🙏🏼 |
Description of Change(s)
We need to be able to support using a static zlib library. This change provides that.
Fixes Issue(s)