diff options
author | midipix <writeonce@midipix.org> | 2020-12-23 01:35:15 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2020-12-23 01:35:15 +0000 |
commit | c141a081bd2c74e7c409416941e4952ef5b774ee (patch) | |
tree | de218c711480b16f51d72e31aea7ba4f79c2ac0b /src/logic/slbt_exec_compile.c | |
parent | 5c84b659b92bb3d83b9f4bef4db0665ceb184289 (diff) | |
download | slibtool-c141a081bd2c74e7c409416941e4952ef5b774ee.tar.bz2 slibtool-c141a081bd2c74e7c409416941e4952ef5b774ee.tar.xz |
slbt_exec_{compile|link}(): properly record the not-found path upon error.
Diffstat (limited to 'src/logic/slbt_exec_compile.c')
-rw-r--r-- | src/logic/slbt_exec_compile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/logic/slbt_exec_compile.c b/src/logic/slbt_exec_compile.c index dca6e1e..7a934ab 100644 --- a/src/logic/slbt_exec_compile.c +++ b/src/logic/slbt_exec_compile.c @@ -155,8 +155,9 @@ int slbt_exec_compile( /* .libs directory */ if (cctx->drvflags & SLBT_DRIVER_SHARED) if (slbt_mkdir(dctx,ectx->ldirname)) { + ret = SLBT_SYSTEM_ERROR(dctx,ectx->ldirname); slbt_free_exec_ctx(actx); - return SLBT_SYSTEM_ERROR(dctx,ectx->ldirname); + return ret; } /* compile mode */ |