gentoo-ebuilds/dev-build/icmake/files/icmake-9.03.01-ar.patch
Alexey Sokolov 5c63bc104e
dev-build/icmake: make AR, RANLIB overrideable, fix on prefix
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>
2025-07-04 21:01:50 +01:00

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);
}
}