Skip to content

Commit 85b0cd8

Browse files
committed
only disable when building ftp static, shared is fine
1 parent 1fcb74a commit 85b0cd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SPC/builder/extension/swoole.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function getUnixConfigureArg(bool $shared = false): string
7171
$config = (new SPCConfigUtil($this->builder))->getLibraryConfig($this->builder->getLib('unixodbc'));
7272
$arg .= ' --with-swoole-odbc=unixODBC,' . BUILD_ROOT_PATH . ' SWOOLE_ODBC_LIBS="' . $config['libs'] . '"';
7373
}
74-
$arg .= $this->builder->getExt('ftp') ? ' --disable-swoole-ftp' : ' --enable-swoole-ftp';
74+
$arg .= $this->builder->getExt('ftp')?->isBuildStatic() ? ' --disable-swoole-ftp' : ' --enable-swoole-ftp';
7575

7676
if ($this->getExtVersion() >= '6.1.0') {
7777
$arg .= ' --enable-swoole-stdext';

0 commit comments

Comments
 (0)