From 62a58d410f7c54050bd2472e6c056e6780d5d0e6 Mon Sep 17 00:00:00 2001 From: DubbleClick Date: Tue, 22 Jul 2025 11:49:13 +0700 Subject: [PATCH] describe centos 7 behaviour better --- src/SPC/builder/Extension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SPC/builder/Extension.php b/src/SPC/builder/Extension.php index f5036284..e2e3aa41 100644 --- a/src/SPC/builder/Extension.php +++ b/src/SPC/builder/Extension.php @@ -532,7 +532,7 @@ class Extension $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')) { $staticLibString .= ' -lstdc++'; $sharedLibString = str_replace('-lstdc++', '', $sharedLibString);