summaryrefslogtreecommitdiff
path: root/src/logic
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-03-08 23:02:34 +0000
committermidipix <writeonce@midipix.org>2024-03-08 23:02:34 +0000
commit7a6d89192abe31a9e2edd5b6f20c936b2d1c5084 (patch)
tree5154515ce3675b36a5f5c8efca26e3884443b566 /src/logic
parentabd6f6b98464e97133450b13cdf6ed304f48bf9a (diff)
downloadslibtool-7a6d89192abe31a9e2edd5b6f20c936b2d1c5084.tar.bz2
slibtool-7a6d89192abe31a9e2edd5b6f20c936b2d1c5084.tar.xz
slbt_exec_link_adjust_argument_vector(): support comment lines.
Diffstat (limited to 'src/logic')
-rw-r--r--src/logic/linkcmd/slbt_linkcmd_argv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/logic/linkcmd/slbt_linkcmd_argv.c b/src/logic/linkcmd/slbt_linkcmd_argv.c
index e4f0d12..a0c342c 100644
--- a/src/logic/linkcmd/slbt_linkcmd_argv.c
+++ b/src/logic/linkcmd/slbt_linkcmd_argv.c
@@ -525,9 +525,11 @@ slbt_hidden int slbt_exec_link_adjust_argument_vector(
depsmeta,
SLBT_NESTED_ERROR(dctx));
- *aarg++ = darg;
- mark = darg;
+ if (darg[0] != '#') {
+ *aarg++ = darg;
+ }
+ mark = darg;
dlen = strlen(darg);
size -= dlen;
darg += dlen;