From dc77cbe66029a7e925c1d7299be7dfc04d4c263e Mon Sep 17 00:00:00 2001
From: midipix <writeonce@midipix.org>
Date: Sat, 9 Apr 2016 17:40:07 -0400
Subject: internal: slbt_create_symlink(): account for both the link and
 install mode.

---
 src/internal/slibtool_symlink_impl.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

(limited to 'src/internal')

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;
-- 
cgit v1.2.3