summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-05-03 15:16:49 -0400
committermidipix <writeonce@midipix.org>2016-05-03 15:47:40 -0400
commitdfe3cc5a843642eab0b3508ef7838986f8aa9a1e (patch)
tree3838eacda3198979d68b25b6849a64fe0ab36fc7 /src
parent60f67c14f97429647a45c02255c3aab12d0133b1 (diff)
downloadslibtool-dfe3cc5a843642eab0b3508ef7838986f8aa9a1e.tar.bz2
slibtool-dfe3cc5a843642eab0b3508ef7838986f8aa9a1e.tar.xz
install mode: legabits: install .la wrappers to the destination directory.
Diffstat (limited to 'src')
-rw-r--r--src/logic/slbt_exec_install.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/logic/slbt_exec_install.c b/src/logic/slbt_exec_install.c
index 1546109..83cbf4c 100644
--- a/src/logic/slbt_exec_install.c
+++ b/src/logic/slbt_exec_install.c
@@ -264,6 +264,19 @@ static int slbt_exec_install_entry(
? -1 : 0;
}
+ /* legabits? */
+ if (dctx->cctx->drvflags & SLBT_DRIVER_LEGABITS) {
+ *src = (char *)entry->arg;
+ *dst = dest ? 0 : (char *)last->arg;
+
+ if (!(dctx->cctx->drvflags & SLBT_DRIVER_SILENT))
+ if (slbt_output_install(dctx,ectx))
+ return -1;
+
+ if ((slbt_spawn(ectx,true) < 0) || ectx->exitcode)
+ return -1;
+ }
+
/* *dst: consider: cp libfoo.la /dest/dir/libfoo.la */
if ((*dst = dest ? 0 : (char *)last->arg))
if ((dot = strrchr(last->arg,'.')))