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.
2 parents 3d45890 + 005b784 commit e492108Copy full SHA for e492108
src/SPC/builder/extension/curl.php
@@ -7,6 +7,7 @@
7
use SPC\builder\Extension;
8
use SPC\builder\linux\LinuxBuilder;
9
use SPC\builder\macos\MacOSBuilder;
10
+use SPC\builder\windows\WindowsBuilder;
11
use SPC\exception\FileSystemException;
12
use SPC\exception\WrongUsageException;
13
use SPC\store\FileSystem;
@@ -60,7 +61,7 @@ public function patchBeforeConfigure(): bool
60
61
public function patchBeforeMake(): bool
62
{
63
$extra_libs = getenv('SPC_EXTRA_LIBS');
- if (!str_contains($extra_libs, 'secur32.lib')) {
64
+ if ($this->builder instanceof WindowsBuilder && !str_contains($extra_libs, 'secur32.lib')) {
65
$extra_libs .= ' secur32.lib';
66
putenv('SPC_EXTRA_LIBS=' . trim($extra_libs));
67
return true;
0 commit comments