unixconfigurearg needs to know if currently building shared or static

This commit is contained in:
DubbleClick
2025-03-27 11:12:19 +07:00
parent acdec64144
commit 48f257f85a
38 changed files with 61 additions and 45 deletions

View File

@@ -51,9 +51,9 @@ class SPCConfigUtil
$libs = BUILD_LIB_PATH . '/mimalloc.o ' . str_replace(BUILD_LIB_PATH . '/mimalloc.o', '', $libs);
}
return [
'cflags' => $cflags,
'ldflags' => $ldflags,
'libs' => $libs,
'cflags' => trim(getenv('CFLAGS') . ' ' . $cflags),
'ldflags' => trim(getenv('LDFLAGS') . ' ' . $ldflags),
'libs' => trim(getenv('LIBS') . ' ' . $libs),
];
}