summaryrefslogtreecommitdiff
path: root/src/logic/slbt_exec_link.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-10 04:02:04 +0000
committermidipix <writeonce@midipix.org>2024-02-10 04:33:08 +0000
commitc486f26f7759687536270a2ab46e4f639005555a (patch)
tree4a783b36a9e6b7f634910119a4c5857866948923 /src/logic/slbt_exec_link.c
parent3d55672811ed7f35d226ab714a5bd812729eb48b (diff)
downloadslibtool-c486f26f7759687536270a2ab46e4f639005555a.tar.bz2
slibtool-c486f26f7759687536270a2ab46e4f639005555a.tar.xz
link mode: move the host tag logic to its own translation unit.
Diffstat (limited to 'src/logic/slbt_exec_link.c')
-rw-r--r--src/logic/slbt_exec_link.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c
index c21af58..23cc999 100644
--- a/src/logic/slbt_exec_link.c
+++ b/src/logic/slbt_exec_link.c
@@ -128,54 +128,6 @@ static int slbt_exec_link_remove_file(
return SLBT_SYSTEM_ERROR(dctx,0);
}
-static int slbt_exec_link_create_host_tag(
- const struct slbt_driver_ctx * dctx,
- struct slbt_exec_ctx * ectx,
- char * deffilename)
-{
- char * slash;
- char hosttag[PATH_MAX];
- char hostlnk[PATH_MAX];
-
- /* libfoo.so.def.{flavor} */
- if (slbt_snprintf(hosttag,
- sizeof(hosttag),
- "%s.%s",
- deffilename,
- dctx->cctx->host.flavor) < 0)
- return SLBT_BUFFER_ERROR(dctx);
-
- if (slbt_snprintf(hostlnk,
- sizeof(hostlnk),
- "%s.host",
- deffilename) < 0)
- return SLBT_BUFFER_ERROR(dctx);
-
- /* libfoo.so.def is under .libs/ */
- if (!(slash = strrchr(deffilename,'/')))
- return SLBT_CUSTOM_ERROR(dctx,SLBT_ERR_LINK_FLOW);
-
- if (slbt_create_symlink(
- dctx,ectx,
- deffilename,
- hosttag,
- SLBT_SYMLINK_DEFAULT))
- return SLBT_NESTED_ERROR(dctx);
-
- /* libfoo.so.def.{flavor} is under .libs/ */
- if (!(slash = strrchr(hosttag,'/')))
- return SLBT_CUSTOM_ERROR(dctx,SLBT_ERR_LINK_FLOW);
-
- if (slbt_create_symlink(
- dctx,ectx,
- ++slash,
- hostlnk,
- SLBT_SYMLINK_DEFAULT))
- return SLBT_NESTED_ERROR(dctx);
-
- return 0;
-}
-
static int slbt_exec_link_create_import_library(
const struct slbt_driver_ctx * dctx,
struct slbt_exec_ctx * ectx,