File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ public static function getSupportedDistros(): array
194194 /**
195195 * Get libc version string from ldd
196196 */
197- public static function getLibcVersionIfExists (string $ libc ): ?string
197+ public static function getLibcVersionIfExists (? string $ libc = null ): ?string
198198 {
199199 if (self ::$ libc_version !== null ) {
200200 return self ::$ libc_version ;
Original file line number Diff line number Diff line change 66
77use SPC \store \FileSystem ;
88use SPC \util \executor \UnixAutoconfExecutor ;
9+ use SPC \util \SPCTarget ;
910
1011trait ncurses
1112{
@@ -15,7 +16,7 @@ protected function build(): void
1516
1617 UnixAutoconfExecutor::create ($ this )
1718 ->appendEnv ([
18- 'LDFLAGS ' => getenv ( ' SPC_LIBC ' ) === ' musl ' ? '-static ' : '' ,
19+ 'LDFLAGS ' => SPCTarget:: isStatic () ? '-static ' : '' ,
1920 ])
2021 ->configure (
2122 '--enable-overwrite ' ,
You can’t perform that action at this time.
0 commit comments