summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-09-02 15:52:02 -0400
committermidipix <writeonce@midipix.org>2016-09-03 23:23:16 -0400
commit08246dc7c823af1e76f3c0acbfb8b87dae41b17e (patch)
tree98308ef71ae3bfaf6222f88607e3d312217c723d /src
parent8069c3cdd4ce1d08bc67d26e2a3b483b5c89f50d (diff)
downloadslibtool-08246dc7c823af1e76f3c0acbfb8b87dae41b17e.tar.bz2
slibtool-08246dc7c823af1e76f3c0acbfb8b87dae41b17e.tar.xz
slbt_create_default_library_wrapper(): added error trace support.
Diffstat (limited to 'src')
-rw-r--r--src/internal/slibtool_libmeta_impl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/internal/slibtool_libmeta_impl.c b/src/internal/slibtool_libmeta_impl.c
index f08aa94..e815983 100644
--- a/src/internal/slibtool_libmeta_impl.c
+++ b/src/internal/slibtool_libmeta_impl.c
@@ -7,6 +7,7 @@
#include <stdio.h>
#include <stdbool.h>
#include <slibtool/slibtool.h>
+#include "slibtool_errinfo_impl.h"
#include "slibtool_metafile_impl.h"
static int slbt_create_default_library_wrapper(
@@ -32,7 +33,7 @@ static int slbt_create_default_library_wrapper(
/* create */
if (!(fout = fopen(dctx->cctx->output,"w")))
- return -1;
+ return SLBT_SYSTEM_ERROR(dctx);
/* version info */
current = 0;
@@ -114,7 +115,8 @@ static int slbt_create_default_library_wrapper(
dctx->cctx->rpath ? dctx->cctx->rpath : "");
return (ret <= 0) || fclose(fout)
- ? -1 : 0;
+ ? SLBT_SYSTEM_ERROR(dctx)
+ : 0;
}
static int slbt_create_compatible_library_wrapper(