diff options
author | midipix <writeonce@midipix.org> | 2016-04-25 14:26:37 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-04-25 14:26:37 -0400 |
commit | ff55c40b9cd02508fc41e9a33070a17f1000ffac (patch) | |
tree | e395afa837ce614ba79ea714a6a0aab020412fb8 /src/logic/slbt_exec_compile.c | |
parent | a5d1444cae57e2bfe6977b8ca01e097a16ad3e5b (diff) | |
download | slibtool-ff55c40b9cd02508fc41e9a33070a17f1000ffac.tar.bz2 slibtool-ff55c40b9cd02508fc41e9a33070a17f1000ffac.tar.xz |
compile mode: include slibtool version information in the object wrapper.
Diffstat (limited to 'src/logic/slbt_exec_compile.c')
-rw-r--r-- | src/logic/slbt_exec_compile.c | 8 |
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 |