-
-
Notifications
You must be signed in to change notification settings - Fork 382
set custom binary name for frankenphp, allow linking against system openssl (fix mssql issues) #1056
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
set custom binary name for frankenphp, allow linking against system openssl (fix mssql issues) #1056
Changes from 5 commits
16e772e
b690566
f93ad27
2277390
1edf14e
5d5a50a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -365,6 +365,24 @@ protected function installLicense(): void | |
|
|
||
| protected function isLibraryInstalled(): bool | ||
| { | ||
| if ($pkg_configs = Config::getLib(static::NAME, 'pkg-configs', [])) { | ||
| $pkg_config_path = getenv('PKG_CONFIG_PATH') ?: ''; | ||
| $search_paths = array_unique(array_filter(explode(is_unix() ? ':' : ';', $pkg_config_path))); | ||
|
|
||
| foreach ($pkg_configs as $name) { | ||
| $found = false; | ||
| foreach ($search_paths as $path) { | ||
| if (file_exists($path . "/{$name}.pc")) { | ||
| $found = true; | ||
| break; | ||
| } | ||
| } | ||
| if (!$found) { | ||
| return false; | ||
| } | ||
| } | ||
| return true; // allow using system dependencies if pkg_config_path is explicitly defined | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bypassing check could cause many problems in the future I think. Skipping building and using dynamic libraries should be two separate things, we cannot just do for checking though.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This behaviour was already intended before, you even documented it: https://github.com/crazywhalecc/static-php-cli/blob/main/docs/en/develop/system-build-tools.md#pkg-config-compilation-nix-only It was simply bugged before.
henderkes marked this conversation as resolved.
Outdated
|
||
| } | ||
| foreach (Config::getLib(static::NAME, 'static-libs', []) as $name) { | ||
| if (!file_exists(BUILD_LIB_PATH . "/{$name}")) { | ||
| return false; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.