Skip to content

Commit f9de43c

Browse files
committed
=yes
1 parent e00227f commit f9de43c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/SPC/builder/unix/UnixBuilderBase.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
namespace SPC\builder\unix;
66

77
use SPC\builder\BuilderBase;
8+
use SPC\builder\freebsd\library\BSDLibraryBase;
89
use SPC\builder\linux\library\LinuxLibraryBase;
910
use SPC\builder\linux\LinuxBuilder;
11+
use SPC\builder\macos\library\MacOSLibraryBase;
1012
use SPC\exception\FileSystemException;
1113
use SPC\exception\RuntimeException;
1214
use SPC\exception\WrongUsageException;
@@ -109,9 +111,9 @@ public function makeAutoconfArgs(string $name, array $libSpecs): string
109111

110112
$disableArgs = $arr[0] ?? null;
111113
$prefix = $arr[1] ?? null;
112-
if ($lib instanceof LinuxLibraryBase) {
114+
if ($lib instanceof LinuxLibraryBase || $lib instanceof MacOSLibraryBase || $lib instanceof BSDLibraryBase) {
113115
logger()->info("{$name} \033[32;1mwith\033[0;1m {$libName} support");
114-
$ret .= "--with-{$libName}=no " . $lib->makeAutoconfEnv($prefix) . ' ';
116+
$ret .= "--with-{$libName}=yes " . $lib->makeAutoconfEnv($prefix) . ' ';
115117
} else {
116118
logger()->info("{$name} \033[31;1mwithout\033[0;1m {$libName} support");
117119
$ret .= ($disableArgs ?? "--with-{$libName}=no") . ' ';

0 commit comments

Comments
 (0)