summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/logic/slbt_exec_compile.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/logic/slbt_exec_compile.c b/src/logic/slbt_exec_compile.c
index b58175a..dcfdf29 100644
--- a/src/logic/slbt_exec_compile.c
+++ b/src/logic/slbt_exec_compile.c
@@ -36,6 +36,7 @@ int slbt_exec_compile(
int fdlibs;
FILE * fout;
struct slbt_exec_ctx * actx = 0;
+ const struct slbt_source_version * verinfo;
/* context */
if (ectx)
@@ -135,14 +136,19 @@ int slbt_exec_compile(
return -1;
}
+ verinfo = slbt_source_version();
+
ret = fprintf(fout,
"# libtool compatible object wrapper\n"
- "# Generated by %s (slibtool pre-alpha)\n\n"
+ "# Generated by %s (slibtool %d.%d.%d)\n"
+ "# [commit reference: %s]\n\n"
"pic_object='%s'\n"
"non_pic_object='%s'\n",
dctx->program,
+ verinfo->major,verinfo->minor,verinfo->revision,
+ verinfo->commit,
(dctx->cctx->drvflags & SLBT_DRIVER_SHARED)
? ectx->lobjname