mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-07-23 23:48:22 +02:00
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org> Part-of: https://github.com/gentoo/gentoo/pull/42687 Signed-off-by: Sam James <sam@gentoo.org>
17 lines
551 B
Diff
17 lines
551 B
Diff
https://gitlab.com/fbb-git/icmake/-/merge_requests/12
|
|
|
|
diff --git a/scripts/ib/staticlibrary b/scripts/ib/staticlibrary
|
|
index f051569..e33084f 100644
|
|
--- a/scripts/ib/staticlibrary
|
|
+++ b/scripts/ib/staticlibrary
|
|
@@ -4,8 +4,8 @@ void static_library()
|
|
|
|
if (g_compiled)
|
|
{
|
|
- system("ar cr ../lib" LIBRARY + ".a *" OBJ_EXT);
|
|
- system("ranlib ../lib" LIBRARY + ".a");
|
|
+ system("${AR:-ar} cr ../lib" LIBRARY + ".a *" OBJ_EXT);
|
|
+ system("${RANLIB:-ar} ../lib" LIBRARY + ".a");
|
|
system("rm *" OBJ_EXT);
|
|
}
|
|
}
|