summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-10-21 20:58:08 -0400
committermidipix <writeonce@midipix.org>2018-10-21 21:49:54 -0400
commitdc48ad4836a2aaaa7c5058b008937a102945ed85 (patch)
tree0c093279e01f43557b82668915f704f9d20608b7
parent3ead954b0d2ce58f8836487ee3a5e48acb45a866 (diff)
downloadslibtool-dc48ad4836a2aaaa7c5058b008937a102945ed85.tar.bz2
slibtool-dc48ad4836a2aaaa7c5058b008937a102945ed85.tar.xz
slbt_exec_link_finalize_argument_vector(): properly handle local archives.
-rw-r--r--src/logic/slbt_exec_link.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c
index 0648d29..f3c292f 100644
--- a/src/logic/slbt_exec_link.c
+++ b/src/logic/slbt_exec_link.c
@@ -644,6 +644,10 @@ static int slbt_exec_link_finalize_argument_vector(
*oarg++ = *parg++;
*oarg++ = *parg++;
*oarg++ = *parg++;
+
+ } else if (dot && !strcmp(dot,arsuffix)) {
+ *oarg++ = *parg++;
+
} else {
*aarg++ = *parg++;
}