From 9e7e2e30a4ef186fd0dbd8ceab0afd7649f21ab9 Mon Sep 17 00:00:00 2001 From: DubbleClick Date: Tue, 22 Jul 2025 11:48:12 +0700 Subject: [PATCH] goddamn centos 7 --- 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 891d1fea..f5036284 100644 --- a/src/SPC/builder/Extension.php +++ b/src/SPC/builder/Extension.php @@ -533,7 +533,7 @@ class Extension } } // move static libstdc++ to shared if we are on non-full-static build target - if (SPCTarget::isStatic()) { + if (str_contains((string) getenv('PATH'), 'rh/devtoolset-10')) { $staticLibString .= ' -lstdc++'; $sharedLibString = str_replace('-lstdc++', '', $sharedLibString); }