summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
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;