We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8854f1 commit d5e7f00Copy full SHA for d5e7f00
src/SPC/builder/unix/library/net_snmp.php
@@ -4,10 +4,20 @@
4
5
namespace SPC\builder\unix\library;
6
7
+use SPC\store\FileSystem;
8
use SPC\util\executor\UnixAutoconfExecutor;
9
10
trait net_snmp
11
{
12
+ public function patchBeforeBuild(): bool
13
+ {
14
+ if (PHP_OS_FAMILY === 'Linux') {
15
+ FileSystem::replaceFileStr("{$this->source_dir}/configure", 'LIBS="-lssl ${OPENSSL_LIBS}"', 'LIBS="-lssl ${OPENSSL_LIBS} -lpthread -ldl"');
16
+ return true;
17
+ }
18
+ return false;
19
20
+
21
protected function build(): void
22
23
// use --static for PKG_CONFIG
0 commit comments