From f38ea1296c687f30e15f3540046f7278f95fc600 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 21 Apr 2016 16:37:10 -0400 Subject: install mode: added missing step: install libfoo.a when the input is libfoo.la. --- src/logic/slbt_exec_install.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/logic') diff --git a/src/logic/slbt_exec_install.c b/src/logic/slbt_exec_install.c index d14d3b0..a595774 100644 --- a/src/logic/slbt_exec_install.c +++ b/src/logic/slbt_exec_install.c @@ -288,7 +288,16 @@ static int slbt_exec_install_entry( ? -1 : 0; } - /* libfoo.la --> libfoo.so */ + /* libfoo.a */ + dot = strrchr(srcfile,'.'); + strcpy(dot,dctx->cctx->settings.arsuffix); + + if (slbt_copy_file(dctx,ectx, + srcfile, + dest ? (char *)dest->arg : (char *)last->arg)) + return -1; + + /* libfoo.a --> libfoo.so */ strcpy(slnkname,srcfile); dot = strrchr(slnkname,'.'); strcpy(dot,dctx->cctx->settings.dsosuffix); -- cgit v1.2.3