File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/SPC/builder/extension Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,13 @@ class redis extends Extension
1313 public function getUnixConfigureArg (bool $ shared = false ): string
1414 {
1515 $ arg = '--enable-redis ' ;
16- $ arg .= $ this ->builder ->getExt ('session ' ) ? ' --enable-redis-session ' : ' --disable-redis-session ' ;
17- $ arg .= $ this ->builder ->getExt ('igbinary ' ) ? ' --enable-redis-igbinary ' : ' --disable-redis-igbinary ' ;
16+ if ($ this ->isBuildStatic ()) {
17+ $ arg .= $ this ->builder ->getExt ('session ' )?->isBuildStatic() ? ' --enable-redis-session ' : ' --disable-redis-session ' ;
18+ $ arg .= $ this ->builder ->getExt ('igbinary ' )?->isBuildStatic() ? ' --enable-redis-igbinary ' : ' --disable-redis-igbinary ' ;
19+ } else {
20+ $ arg .= $ this ->builder ->getExt ('session ' ) ? ' --enable-redis-session ' : ' --disable-redis-session ' ;
21+ $ arg .= $ this ->builder ->getExt ('igbinary ' ) ? ' --enable-redis-igbinary ' : ' --disable-redis-igbinary ' ;
22+ }
1823 if ($ this ->builder ->getLib ('zstd ' )) {
1924 $ arg .= ' --enable-redis-zstd --with-libzstd=" ' . BUILD_ROOT_PATH . '" ' ;
2025 }
You can’t perform that action at this time.
0 commit comments