Skip to content

Commit 63fcdd9

Browse files
committed
default param
1 parent 832c023 commit 63fcdd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SPC/builder/linux/LinuxBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function buildPHP(int $build_target = BUILD_TARGET_NONE): void
8080
}
8181
// add libstdc++, some extensions or libraries need it
8282
$extra_libs .= (empty($extra_libs) ? '' : ' ') . ($this->hasCpp() ? '-lstdc++ ' : '');
83-
$extra_libs .= (SystemUtil::getCCType(getenv('CC')) === 'clang' ? ' -lunwind' : '');
83+
$extra_libs .= (SystemUtil::getCCType() === 'clang' ? ' -lunwind' : '');
8484
f_putenv('SPC_EXTRA_LIBS=' . $extra_libs);
8585
$cflags = $this->arch_c_flags;
8686
f_putenv('CFLAGS=' . $cflags);

0 commit comments

Comments
 (0)