don't check for musl toolkit when running zig, add -static to ncurses

This commit is contained in:
DubbleClick
2025-06-27 18:21:22 +07:00
parent 797aaf1ea8
commit d2dea83c63
2 changed files with 10 additions and 0 deletions

View File

@@ -14,6 +14,9 @@ trait ncurses
$filelist = FileSystem::scanDirFiles(BUILD_BIN_PATH, relative: true);
UnixAutoconfExecutor::create($this)
->appendEnv([
'LDFLAGS' => getenv('SPC_LIBC') === 'musl' ? '-static' : ''
])
->configure(
'--enable-overwrite',
'--with-curses-h',
@@ -22,6 +25,7 @@ trait ncurses
'--disable-widec',
'--with-normal',
'--with-ticlib',
'--with-pthread',
'--without-tests',
'--without-dlsym',
'--without-debug',