summaryrefslogtreecommitdiff
path: root/src/logic/slbt_exec_link.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-10-21 21:05:05 -0400
committermidipix <writeonce@midipix.org>2018-10-21 21:49:54 -0400
commit19ea755e63f55baeaea746573df75373736a0033 (patch)
tree8d1f2e91992007881248032a65ae060beee0a278 /src/logic/slbt_exec_link.c
parent2480bde89a3c451902613e8ece89a9f233560512 (diff)
downloadslibtool-19ea755e63f55baeaea746573df75373736a0033.tar.bz2
slibtool-19ea755e63f55baeaea746573df75373736a0033.tar.xz
slbt_exec_link_finalize_argument_vector(): remove placeholder arguments.
Diffstat (limited to 'src/logic/slbt_exec_link.c')
-rw-r--r--src/logic/slbt_exec_link.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c
index c4a5023..25a9412 100644
--- a/src/logic/slbt_exec_link.c
+++ b/src/logic/slbt_exec_link.c
@@ -656,7 +656,10 @@ static int slbt_exec_link_finalize_argument_vector(
} else {
/* not a -l argument? */
if ((parg[0][0] != '-') || (parg[0][1] != 'l')) {
- *aarg++ = *parg++;
+ if (!strncmp(*parg,"-USLIBTOOL_PLACEHOLDER_",23))
+ parg++;
+ else
+ *aarg++ = *parg++;
} else {
/* find the previus occurence of this -l argument */