Skip to content

Conversation

@petk
Copy link
Owner

@petk petk commented Nov 25, 2024

This is for testing purposes for now and to see how this behaves and if this would work ok. This enables having extensions, as STATIC, SHARED, MODULE, and OBJECT libraries. And Zend can be also STATIC.

STATIC libraries are linked with WHOLE_ARCHIVE feature (--whole-archive and other linker flags) but this is more like a cutting edge feature of linkers and probably not yet very portable solution, so Zend OBJECT library is still a better way here to go with current state of the php-src.

Additionally, always enabled extensions are marked as OBJECT libraries to make it clearer.

Fixes GH-3

This is for testing purposes for now and to see how this behaves and if
this would work ok. This enables having extensions, as STATIC, SHARED,
MODULE, and OBJECT libraries. And Zend can be also STATIC.

STATIC libraries are linked with WHOLE_ARCHIVE feature (--whole-archive
and other linker flags) but this is more like a cutting edge feature of
linkers and probably not yet very portable solution, so Zend OBJECT
library is still a better way here to go with current state of the
php-src.

Additionally, always enabled extensions are marked as OBJECT libraries
to make it clearer.

Fixes GH-3
@petk petk linked an issue Nov 25, 2024 that may be closed by this pull request
@petk petk merged commit 266eb78 into PHP-8.3 Nov 26, 2024
1 of 3 checks passed
@petk petk deleted the patch-object-vs-static-libraries branch November 26, 2024 01:28
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

Successfully merging this pull request may close these issues.

Objects missing in executables and static library (libphp)

2 participants