summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-19 14:47:05 -0400
committermidipix <writeonce@midipix.org>2016-04-19 14:47:55 -0400
commit0364b59d5b222425faf725ba52aef155e8a9ecc1 (patch)
treef6b32761aa367f270b4a58638a910c45280eb113
parentd8d0e9e45efe23eb1923a91970f699baad1edf0a (diff)
downloadslibtool-0364b59d5b222425faf725ba52aef155e8a9ecc1.tar.bz2
slibtool-0364b59d5b222425faf725ba52aef155e8a9ecc1.tar.xz
library: helper functions: slbt_copy_file: properly call slbt_output_{mode}.
-rw-r--r--src/helper/slbt_copy_file.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/helper/slbt_copy_file.c b/src/helper/slbt_copy_file.c
index a97c35c..158a760 100644
--- a/src/helper/slbt_copy_file.c
+++ b/src/helper/slbt_copy_file.c
@@ -30,9 +30,16 @@ int slbt_copy_file(
/* step output */
if (!(dctx->cctx->drvflags & SLBT_DRIVER_SILENT)) {
- if (slbt_output_link(dctx,ectx)) {
- ectx->argv = oargv;
- return -1;
+ if (dctx->cctx->mode == SLBT_MODE_LINK) {
+ if (slbt_output_link(dctx,ectx)) {
+ ectx->argv = oargv;
+ return -1;
+ }
+ } else {
+ if (slbt_output_install(dctx,ectx)) {
+ ectx->argv = oargv;
+ return -1;
+ }
}
}