From dfe3cc5a843642eab0b3508ef7838986f8aa9a1e Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 3 May 2016 15:16:49 -0400 Subject: install mode: legabits: install .la wrappers to the destination directory. --- src/logic/slbt_exec_install.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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,'.'))) -- cgit v1.2.3