summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-09 17:40:07 -0400
committermidipix <writeonce@midipix.org>2016-04-09 19:01:04 -0400
commitdc77cbe66029a7e925c1d7299be7dfc04d4c263e (patch)
tree525da0b7cf5d07d806d980f1776d7bf67d764e7c /src
parentca15b925768ff6910ed667b7e713b82043c0dee5 (diff)
downloadslibtool-dc77cbe66029a7e925c1d7299be7dfc04d4c263e.tar.bz2
slibtool-dc77cbe66029a7e925c1d7299be7dfc04d4c263e.tar.xz
internal: slbt_create_symlink(): account for both the link and install mode.
Diffstat (limited to 'src')
-rw-r--r--src/internal/slibtool_symlink_impl.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/internal/slibtool_symlink_impl.c b/src/internal/slibtool_symlink_impl.c
index 88af538..66788fe 100644
--- a/src/internal/slibtool_symlink_impl.c
+++ b/src/internal/slibtool_symlink_impl.c
@@ -50,10 +50,15 @@ int slbt_create_symlink(
ectx->argv = ln;
/* step output */
- if (!(dctx->cctx->drvflags & SLBT_DRIVER_SILENT))
- if (slbt_output_link(dctx,ectx))
+ if (!(dctx->cctx->drvflags & SLBT_DRIVER_SILENT)) {
+ if ((dctx->cctx->mode == SLBT_MODE_LINK)
+ && slbt_output_link(dctx,ectx))
return -1;
+ else if (slbt_output_install(dctx,ectx))
+ return -1;
+ }
+
/* create symlink */
if (symlink(atarget,tmplnk))
return -1;