Skip to content

Commit e492108

Browse files
authored
Merge pull request #823 from crazywhalecc/fix/curl-patch
Fix curl build for non-windows
2 parents 3d45890 + 005b784 commit e492108

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/SPC/builder/extension/curl.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use SPC\builder\Extension;
88
use SPC\builder\linux\LinuxBuilder;
99
use SPC\builder\macos\MacOSBuilder;
10+
use SPC\builder\windows\WindowsBuilder;
1011
use SPC\exception\FileSystemException;
1112
use SPC\exception\WrongUsageException;
1213
use SPC\store\FileSystem;
@@ -60,7 +61,7 @@ public function patchBeforeConfigure(): bool
6061
public function patchBeforeMake(): bool
6162
{
6263
$extra_libs = getenv('SPC_EXTRA_LIBS');
63-
if (!str_contains($extra_libs, 'secur32.lib')) {
64+
if ($this->builder instanceof WindowsBuilder && !str_contains($extra_libs, 'secur32.lib')) {
6465
$extra_libs .= ' secur32.lib';
6566
putenv('SPC_EXTRA_LIBS=' . trim($extra_libs));
6667
return true;

0 commit comments

Comments
 (0)