From 5728ce8ec0bcb4199b191f26d905a0bbd8cc1b4b Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 8 Feb 2024 17:24:51 +0000 Subject: slbt_exec_link_create_archive(): pass proper (non-historical) action arguments. --- src/logic/slbt_exec_link.c | 8 ++++---- 1 file 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++) -- cgit v1.2.3