summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-05-06 22:30:55 +0000
committermidipix <writeonce@midipix.org>2021-05-06 23:59:45 +0000
commite4090ffefb776b9280029b0405ec7d3f5471512a (patch)
tree22a57ad0516cd7886b333d85af87f81c8fd96779
parentcccab50eb9c04b8729245788f6e7cfb20e600e40 (diff)
downloadslibtool-e4090ffefb776b9280029b0405ec7d3f5471512a.tar.bz2
slibtool-e4090ffefb776b9280029b0405ec7d3f5471512a.tar.xz
install mode: slbt_exec_install_entry(): remove dead code.
-rw-r--r--src/logic/slbt_exec_install.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/logic/slbt_exec_install.c b/src/logic/slbt_exec_install.c
index 82c7983..1faa305 100644
--- a/src/logic/slbt_exec_install.c
+++ b/src/logic/slbt_exec_install.c
@@ -476,6 +476,8 @@ static int slbt_exec_install_entry(
if (slbt_set_alternate_host(dctx,host,host))
return SLBT_NESTED_ERROR(dctx);
+ fpe = !strcmp(dctx->cctx->asettings.imagefmt,"pe");
+
/* libfoo.a --> libfoo.so */
strcpy(dot,dsosuffix);
@@ -493,13 +495,6 @@ static int slbt_exec_install_entry(
dest ? (char *)dest->arg : *dst))
return SLBT_NESTED_ERROR(dctx);
- /* PE support: does .libs/libfoo.so.def exist? */
- if ((size_t)snprintf(dstfile,sizeof(dstfile),"%s.def",
- slnkname) >= sizeof(dstfile))
- return SLBT_BUFFER_ERROR(dctx);
-
- fpe = !strcmp(dctx->cctx->asettings.imagefmt,"pe");
-
/* basename */
if ((base = strrchr(slnkname,'/')))
base++;