summaryrefslogtreecommitdiff
path: root/src/logic/slbt_exec_link.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-05-08 07:39:18 -0400
committermidipix <writeonce@midipix.org>2016-05-08 07:48:07 -0400
commit723ef01a4680e1062cb52c5c579443657ac53861 (patch)
tree5eac22558c73faa21d98736bdbb5761fc9aa06b6 /src/logic/slbt_exec_link.c
parenta6544253fd2f1b0a25aed2ec548db2ba02fea4c1 (diff)
downloadslibtool-723ef01a4680e1062cb52c5c579443657ac53861.tar.bz2
slibtool-723ef01a4680e1062cb52c5c579443657ac53861.tar.xz
link mode: always create the .libs directory (removed test: compile mode only).
Diffstat (limited to 'src/logic/slbt_exec_link.c')
-rw-r--r--src/logic/slbt_exec_link.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c
index fe73cf3..d2cda06 100644
--- a/src/logic/slbt_exec_link.c
+++ b/src/logic/slbt_exec_link.c
@@ -1065,11 +1065,10 @@ int slbt_exec_link(
dot = strrchr(output,'.');
/* .libs directory */
- if (dctx->cctx->drvflags & SLBT_DRIVER_SHARED)
- if (slbt_mkdir(ectx->ldirname)) {
- slbt_free_exec_ctx(actx);
- return -1;
- }
+ if (slbt_mkdir(ectx->ldirname)) {
+ slbt_free_exec_ctx(actx);
+ return -1;
+ }
/* non-pic libfoo.a */
if (dot && !strcmp(dot,".a"))