summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-06 02:17:38 -0400
committermidipix <writeonce@midipix.org>2016-04-06 02:17:38 -0400
commit14ef986fc486bd0d3590bc8262ebe8bfb8ee69a8 (patch)
treeb5eefb5bc7892f17861e350ca7b78d1454c79058
parent0f859168d7cb37b2cbb74d9405f8e2aa861c2a88 (diff)
downloadslibtool-14ef986fc486bd0d3590bc8262ebe8bfb8ee69a8.tar.bz2
slibtool-14ef986fc486bd0d3590bc8262ebe8bfb8ee69a8.tar.xz
link mode: slbt_exec_link(): fix and improve epilog.
-rw-r--r--src/logic/slbt_exec_link.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c
index e483ced..5ffbc29 100644
--- a/src/logic/slbt_exec_link.c
+++ b/src/logic/slbt_exec_link.c
@@ -676,18 +676,16 @@ int slbt_exec_link(
return -1;
}
- ret = fprintf(fout,
- "# slibtool (pre-alpha) generated file\n\n");
-
/* wrapper symlink */
if (slbt_exec_link_create_symlink(
dctx,ectx,
output,
ectx->lafilename,
- true)) {
- slbt_free_exec_ctx(actx);
- return -1;
- }
+ true))
+ ret = -1;
+ else
+ ret = fprintf(fout,
+ "# slibtool (pre-alpha) generated file\n\n");
/* all done */
fclose(fout);