mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-20 15:25:36 +08:00
describe centos 7 behaviour better
This commit is contained in:
@@ -532,7 +532,7 @@ class Extension
|
|||||||
$sharedLibString .= '-l' . $lib . ' ';
|
$sharedLibString .= '-l' . $lib . ' ';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// move static libstdc++ to shared if we are on non-full-static build target
|
// move -lstdc++ to static libraries because centos 7 the shared libstdc++ is incomplete
|
||||||
if (str_contains((string) getenv('PATH'), 'rh/devtoolset-10')) {
|
if (str_contains((string) getenv('PATH'), 'rh/devtoolset-10')) {
|
||||||
$staticLibString .= ' -lstdc++';
|
$staticLibString .= ' -lstdc++';
|
||||||
$sharedLibString = str_replace('-lstdc++', '', $sharedLibString);
|
$sharedLibString = str_replace('-lstdc++', '', $sharedLibString);
|
||||||
|
|||||||
Reference in New Issue
Block a user