Skip to content
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

Check builds #7

Open
cmb69 opened this issue Nov 15, 2024 · 2 comments
Open

Check builds #7

cmb69 opened this issue Nov 15, 2024 · 2 comments

Comments

@cmb69
Copy link
Member

cmb69 commented Nov 15, 2024

$ cd libxml2-2.11.9-vs17-x64

$ dir lib
28.10.2024  10:02           361.738 libxml2.lib
28.10.2024  10:03         9.396.198 libxml2_a.lib
28.10.2024  10:03         9.398.492 libxml2_a_dll.lib

Why are there three libs?

@Jan-E
Copy link

Jan-E commented Nov 15, 2024

libxml2.lib is a shared lib and needs libxml2.dll.
libxml2_a.lib and libxml2_a_dll.lib are static libs. libxml2_a_dll.lib is the preferred one for PHP, but in some places there are still references to libxml2_a.lib for cases when libxml2_a_dll.lib cannot be found.
For instance: https://github.com/php/php-src/blob/PHP-8.4/ext/libxml/config.w32#L6
I do not know what the exact differences between libxml2_a.lib and libxml2_a_dll.lib are.

@cmb69
Copy link
Member Author

cmb69 commented Nov 15, 2024

Ah, thank you @Jan-E!

In the meantime I found that libxml2_a_dll.lib provides xmlDllMain(), while libxml2_a.lib does not (with the latter, building ext/libxml apparently fails). I'll have a closer look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants