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

Support building a shared php8embed.dll #17480

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Jan 15, 2025

So far only static php8embed.lib has been supported on Windows, while on POSIX the choice was up to the user. Now, --enable-embed=shared is also supported on Windows.

For BC reasons we stick with static as default; the resulting embed library can be used like before. To avoid that snapshot builds now build a shared library, we add an exemption to confutils.js.

To properly support a static and a shared library, respectively, we do the customary __declspec dance.

So far only static php8embed.lib has been supported on Windows, while
on POSIX the choice was up to the user.  Now, `--enable-embed=shared`
is also supported on Windows.

For BC reasons we stick with static as default; the resulting embed
library can be used like before.  To avoid that snapshot builds now
build a shared library, we add an exemption to confutils.js.

To properly support a static and a shared library, respectively, we do
the customary `__declspec` dance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant