diff options
author | midipix <writeonce@midipix.org> | 2016-04-21 16:37:10 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-04-21 17:25:57 -0400 |
commit | f38ea1296c687f30e15f3540046f7278f95fc600 (patch) | |
tree | 20ff420b7c0a2faa54874fa9986e8a5182eb4ab2 /src | |
parent | dba2af9c250d8e0d59c730ba6e6f001b02ccc907 (diff) | |
download | slibtool-f38ea1296c687f30e15f3540046f7278f95fc600.tar.bz2 slibtool-f38ea1296c687f30e15f3540046f7278f95fc600.tar.xz |
install mode: added missing step: install libfoo.a when the input is libfoo.la.
Diffstat (limited to 'src')
-rw-r--r-- | src/logic/slbt_exec_install.c | 11 |
1 files changed, 10 insertions, 1 deletions
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); |