Skip to content

ext/ffi: Remove symbol check for ffi_open #4215

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

Closed
wants to merge 1 commit into from

Conversation

hughmcmaster
Copy link
Contributor

configure fails when --with-ffi=shared is specified and ffi is not installed in a system path, because it cannot find the ffi library.

Shared builds were broken in my pull request with commit 4ffbf4e.

@nikic
Copy link
Member

nikic commented Jun 1, 2019

This look ok, but in this case I think we should just drop the PHP_CHECK_LIBRARY call.

@hughmcmaster
Copy link
Contributor Author

@nikic, Okay. Can I ask why?

@nikic
Copy link
Member

nikic commented Jun 1, 2019

@hughmcmaster Unless I'm missing something here, this PHP_CHECK_LIBRARY only checks for presence of the library, which we have already ascertained from pkg-config. It does not perform a test for a conditional or version-dependent feature.

@hughmcmaster hughmcmaster changed the title ext/ffi: Fix broken shared builds ext/ffi: Remove symbol check for ffi_open Jun 1, 2019
@hughmcmaster
Copy link
Contributor Author

@nikic, I've updated this PR as per our discussion. And thanks for the explanation -- I now understand the rationale behind these checks a lot more now.

@php-pulls php-pulls closed this in 7ec50c2 Jun 3, 2019
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.

2 participants