summaryrefslogtreecommitdiff
path: root/src/internal/slibtool_linkcmd_impl.h
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-10 03:49:05 +0000
committermidipix <writeonce@midipix.org>2024-02-10 04:33:07 +0000
commit3d55672811ed7f35d226ab714a5bd812729eb48b (patch)
tree53adb8e73066ae63c2a0a0b1259f239ae44eb283 /src/internal/slibtool_linkcmd_impl.h
parentb080541d62820dd8bf73b37355d52b06095cc617 (diff)
downloadslibtool-3d55672811ed7f35d226ab714a5bd812729eb48b.tar.bz2
slibtool-3d55672811ed7f35d226ab714a5bd812729eb48b.tar.xz
link mode: move the argument vector logic to its own translation unit.
Diffstat (limited to 'src/internal/slibtool_linkcmd_impl.h')
-rw-r--r--src/internal/slibtool_linkcmd_impl.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/internal/slibtool_linkcmd_impl.h b/src/internal/slibtool_linkcmd_impl.h
index c2598f3..df5a731 100644
--- a/src/internal/slibtool_linkcmd_impl.h
+++ b/src/internal/slibtool_linkcmd_impl.h
@@ -21,4 +21,34 @@ int slbt_exec_link_create_dep_file(
const char * libfilename,
bool farchive);
+bool slbt_adjust_object_argument(
+ char * arg,
+ bool fpic,
+ bool fany,
+ int fdcwd);
+
+bool slbt_adjust_wrapper_argument(
+ char * arg,
+ bool fpic);
+
+int slbt_adjust_linker_argument(
+ const struct slbt_driver_ctx * dctx,
+ char * arg,
+ char ** xarg,
+ bool fpic,
+ const char * dsosuffix,
+ const char * arsuffix,
+ struct slbt_deps_meta * depsmeta);
+
+int slbt_exec_link_adjust_argument_vector(
+ const struct slbt_driver_ctx * dctx,
+ struct slbt_exec_ctx * ectx,
+ struct slbt_deps_meta * depsmeta,
+ const char * cwd,
+ bool flibrary);
+
+int slbt_exec_link_finalize_argument_vector(
+ const struct slbt_driver_ctx * dctx,
+ struct slbt_exec_ctx * ectx);
+
#endif