summaryrefslogtreecommitdiff
path: root/src/driver/slbt_split_argv.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-03-02 17:04:49 +0000
committermidipix <writeonce@midipix.org>2024-03-02 22:01:19 +0000
commit9da20229476b0de4fa1e5460b9ade35775a02165 (patch)
treea473f75bddd8d9e11710b648016c02d0e32665d7 /src/driver/slbt_split_argv.c
parent55d6e3a7c7780bfd254f13e0a090adbf91aa3f68 (diff)
downloadslibtool-9da20229476b0de4fa1e5460b9ade35775a02165.tar.bz2
slibtool-9da20229476b0de4fa1e5460b9ade35775a02165.tar.xz
driver: create a vector of -dlpreopen libraries.
Diffstat (limited to 'src/driver/slbt_split_argv.c')
-rw-r--r--src/driver/slbt_split_argv.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/driver/slbt_split_argv.c b/src/driver/slbt_split_argv.c
index db4693a..bdde474 100644
--- a/src/driver/slbt_split_argv.c
+++ b/src/driver/slbt_split_argv.c
@@ -503,7 +503,11 @@ slbt_hidden int slbt_split_argv(
*targv++ = argv[i];
} else if (!(strcmp("dlpreopen",&argv[i][1]))) {
- (void)0;
+ *cargv++ = argv[i];
+ *targv++ = argv[i++];
+
+ *cargv++ = argv[i];
+ *targv++ = argv[i];
} else {
for (popt=optout; popt[0] && popt[0]->long_name; popt++)