summaryrefslogtreecommitdiff
path: root/src/logic/linkcmd
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-03-08 06:13:22 +0000
committermidipix <writeonce@midipix.org>2024-03-08 06:13:22 +0000
commitdfb3317463fa776dec8282e3656980fd8f69e65d (patch)
treec031d7479d020ba8304c18f465b05cd9bb5da472 /src/logic/linkcmd
parent8a41491b40aa67c8907911bade0471ea1a25099d (diff)
downloadslibtool-dfb3317463fa776dec8282e3656980fd8f69e65d.tar.bz2
slibtool-dfb3317463fa776dec8282e3656980fd8f69e65d.tar.xz
execute mode: reimplemented with well-formed semantics.
Diffstat (limited to 'src/logic/linkcmd')
-rw-r--r--src/logic/linkcmd/slbt_linkcmd_executable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logic/linkcmd/slbt_linkcmd_executable.c b/src/logic/linkcmd/slbt_linkcmd_executable.c
index 76c0b1d..e192b72 100644
--- a/src/logic/linkcmd/slbt_linkcmd_executable.c
+++ b/src/logic/linkcmd/slbt_linkcmd_executable.c
@@ -210,9 +210,9 @@ slbt_hidden int slbt_exec_link_create_executable(
"export %s=\"$DL_PATH\"\n\n"
"if [ $(basename \"$0\") = \"%s\" ]; then\n"
"\tprogram=\"$1\"; shift\n"
- "\texec \"$program\" \"$@\"\n"
+ "\texec -- \"$program\" \"$@\"\n"
"fi\n\n"
- "exec %s/%s \"$@\"\n",
+ "exec -- %s/%s \"$@\"\n",
dctx->cctx->settings.ldpathenv,
dctx->cctx->settings.ldpathenv,
base,