summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/driver/slbt_driver_ctx.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 1c6343f..f65460a 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -11,9 +11,17 @@
#define ARGV_DRIVER
#include <slibtool/slibtool.h>
+#include "slibtool_version.h"
#include "slibtool_driver_impl.h"
#include "argv/argv.h"
+/* package info */
+static const struct slbt_source_version slbt_src_version = {
+ SLBT_TAG_VER_MAJOR,
+ SLBT_TAG_VER_MINOR,
+ SLBT_TAG_VER_PATCH,
+ SLIBTOOL_GIT_VERSION
+};
/* flavor settings */
#define SLBT_FLAVOR_SETTINGS(flavor,bfmt,arp,ars,dsop,dsos,exep,exes,impp,imps,ldenv) \
@@ -1021,3 +1029,8 @@ int slbt_set_alternate_host(
return 0;
}
+
+const struct slbt_source_version * slbt_source_version(void)
+{
+ return &slbt_src_version;
+}