summaryrefslogtreecommitdiff
path: root/src/internal
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-10 03:15:34 +0000
committermidipix <writeonce@midipix.org>2024-02-10 04:33:07 +0000
commitb080541d62820dd8bf73b37355d52b06095cc617 (patch)
treedc10831e4afefc3f022a5e9f43a4bf54e44d999d /src/internal
parent19022ee7547839690948a7a9807930a7891f3f15 (diff)
downloadslibtool-b080541d62820dd8bf73b37355d52b06095cc617.tar.bz2
slibtool-b080541d62820dd8bf73b37355d52b06095cc617.tar.xz
link mode: move the dependency file logic to its own translation unit.
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/slibtool_linkcmd_impl.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/internal/slibtool_linkcmd_impl.h b/src/internal/slibtool_linkcmd_impl.h
new file mode 100644
index 0000000..c2598f3
--- /dev/null
+++ b/src/internal/slibtool_linkcmd_impl.h
@@ -0,0 +1,24 @@
+#ifndef SLIBTOOL_LINKCMD_IMPL_H
+#define SLIBTOOL_LINKCMD_IMPL_H
+
+struct slbt_deps_meta {
+ char ** altv;
+ char * args;
+ int depscnt;
+ int infolen;
+};
+
+int slbt_get_deps_meta(
+ const struct slbt_driver_ctx * dctx,
+ char * libfilename,
+ int fexternal,
+ struct slbt_deps_meta * depsmeta);
+
+int slbt_exec_link_create_dep_file(
+ const struct slbt_driver_ctx * dctx,
+ struct slbt_exec_ctx * ectx,
+ char ** altv,
+ const char * libfilename,
+ bool farchive);
+
+#endif