From f38ea1296c687f30e15f3540046f7278f95fc600 Mon Sep 17 00:00:00 2001 From: midipix Date: Apr 21 2016 21:25:57 +0000 Subject: install mode: added missing step: install libfoo.a when the input is libfoo.la. --- 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);