diff options
author | midipix <writeonce@midipix.org> | 2016-11-05 10:19:11 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-05 10:19:11 -0400 |
commit | 252629e613e35e5211cd2181f0319d3a8b801025 (patch) | |
tree | 4c6122aa9e798ea99831a715d0adf21888d8745d /src/logic | |
parent | 17536286306d9ecf75d6a3310d057691209e2fde (diff) | |
download | slibtool-252629e613e35e5211cd2181f0319d3a8b801025.tar.bz2 slibtool-252629e613e35e5211cd2181f0319d3a8b801025.tar.xz |
install mode: respect -disable-static.
Diffstat (limited to 'src/logic')
-rw-r--r-- | src/logic/slbt_exec_install.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/logic/slbt_exec_install.c b/src/logic/slbt_exec_install.c index b5c1587..7dc2b72 100644 --- a/src/logic/slbt_exec_install.c +++ b/src/logic/slbt_exec_install.c @@ -391,10 +391,11 @@ static int slbt_exec_install_entry( dot = strrchr(srcfile,'.'); strcpy(dot,dctx->cctx->settings.arsuffix); - if (slbt_copy_file(dctx,ectx, - srcfile, - dest ? (char *)dest->arg : *dst)) - return SLBT_NESTED_ERROR(dctx); + if (!(dctx->cctx->drvflags & SLBT_DRIVER_DISABLE_STATIC)) + if (slbt_copy_file(dctx,ectx, + srcfile, + dest ? (char *)dest->arg : *dst)) + return SLBT_NESTED_ERROR(dctx); /* dot/suffix */ strcpy(slnkname,srcfile); |