diff options
author | midipix <writeonce@midipix.org> | 2016-04-06 02:17:38 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-04-06 02:17:38 -0400 |
commit | 14ef986fc486bd0d3590bc8262ebe8bfb8ee69a8 (patch) | |
tree | b5eefb5bc7892f17861e350ca7b78d1454c79058 /src | |
parent | 0f859168d7cb37b2cbb74d9405f8e2aa861c2a88 (diff) | |
download | slibtool-14ef986fc486bd0d3590bc8262ebe8bfb8ee69a8.tar.bz2 slibtool-14ef986fc486bd0d3590bc8262ebe8bfb8ee69a8.tar.xz |
link mode: slbt_exec_link(): fix and improve epilog.
Diffstat (limited to 'src')
-rw-r--r-- | src/logic/slbt_exec_link.c | 12 |
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); |