summaryrefslogtreecommitdiff
path: root/dev-build/icmake/files/icmake-9.03.01-ar.patch
blob: 944cca9397467455c0e6a08b7ecd4c677a446217 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);
     }
 }