summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-08 17:24:51 +0000
committermidipix <writeonce@midipix.org>2024-02-08 17:24:51 +0000
commit5728ce8ec0bcb4199b191f26d905a0bbd8cc1b4b (patch)
tree498c6f44d9bba7cc133b53b31295ef26db74cf4f /src
parentc1e423be0dcd4c3ac8309e7b4455da6aa3127676 (diff)
downloadslibtool-5728ce8ec0bcb4199b191f26d905a0bbd8cc1b4b.tar.bz2
slibtool-5728ce8ec0bcb4199b191f26d905a0bbd8cc1b4b.tar.xz
slbt_exec_link_create_archive(): pass proper (non-historical) action arguments.
Diffstat (limited to 'src')
-rw-r--r--src/logic/slbt_exec_link.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c
index 122e6ee..84d3933 100644
--- a/src/logic/slbt_exec_link.c
+++ b/src/logic/slbt_exec_link.c
@@ -37,7 +37,7 @@ struct slbt_deps_meta {
/* ---------- --------------------- ----- ------ */
/* libfoo.a [-shared|-static] bar.lo libfoo.a */
/* */
-/* ar crs libfoo.a bar.o */
+/* ar -crs libfoo.a bar.o */
/* */
/*******************************************************************/
@@ -49,7 +49,7 @@ struct slbt_deps_meta {
/* .libs/libfoo.a */
/* .libs/libfoo.la (lnk) */
/* */
-/* ar crs .libs/libfoo.a .libs/bar.o */
+/* ar -crs .libs/libfoo.a .libs/bar.o */
/* (generate libfoo.la) */
/* ln -s ../libfoo.la .libs/libfoo.la */
/* */
@@ -63,7 +63,7 @@ struct slbt_deps_meta {
/* .libs/libfoo.a */
/* .libs/libfoo.la (lnk) */
/* */
-/* ar crs .libs/libfoo.a bar.o */
+/* ar -crs .libs/libfoo.a bar.o */
/* (generate libfoo.la) */
/* ln -s ../libfoo.la .libs/libfoo.la */
/* */
@@ -1329,7 +1329,7 @@ static int slbt_exec_link_create_archive(
/* input argument adjustment */
aarg = ectx->altv;
*aarg++ = program;
- *aarg++ = "crs";
+ *aarg++ = "-crs";
*aarg++ = output;
for (parg=ectx->cargv; *parg; parg++)