From 252629e613e35e5211cd2181f0319d3a8b801025 Mon Sep 17 00:00:00 2001 From: midipix Date: Nov 05 2016 14:19:11 +0000 Subject: install mode: respect -disable-static. --- 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);