summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-11 14:32:08 -0400
committermidipix <writeonce@midipix.org>2016-04-11 14:32:08 -0400
commit68f313e1452c88235ece7f5b76b6bbdb82b9e5f3 (patch)
tree2bc2a798c5d07e7c9a2c0d2d5cd3a3af2c3a1368 /src
parenta943fc79ea08792a9f1679183372bd4fccedcf2d (diff)
downloadslibtool-68f313e1452c88235ece7f5b76b6bbdb82b9e5f3.tar.bz2
slibtool-68f313e1452c88235ece7f5b76b6bbdb82b9e5f3.tar.xz
driver: added -avoid-version support.
Diffstat (limited to 'src')
-rw-r--r--src/driver/slbt_driver_ctx.c4
-rw-r--r--src/internal/slibtool_driver_impl.h1
-rw-r--r--src/skin/slbt_skin_default.c5
3 files changed, 10 insertions, 0 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 5640453..47e4f7d 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -758,6 +758,10 @@ int slbt_get_driver_ctx(
cctx.drvflags |= SLBT_DRIVER_MODULE;
break;
+ case TAG_AVOID_VERSION:
+ cctx.drvflags |= SLBT_DRIVER_AVOID_VERSION;
+ break;
+
case TAG_SHARED:
cctx.drvflags &= ~(uint64_t)SLBT_DRIVER_STATIC;
break;
diff --git a/src/internal/slibtool_driver_impl.h b/src/internal/slibtool_driver_impl.h
index 685c511..c0c137c 100644
--- a/src/internal/slibtool_driver_impl.h
+++ b/src/internal/slibtool_driver_impl.h
@@ -45,6 +45,7 @@ enum app_tags {
TAG_STATIC,
TAG_NO_UNDEFINED,
TAG_MODULE,
+ TAG_AVOID_VERSION,
TAG_COMPILER_FLAG,
TAG_VERBATIM_FLAG,
};
diff --git a/src/skin/slbt_skin_default.c b/src/skin/slbt_skin_default.c
index f9f2109..829b9d7 100644
--- a/src/skin/slbt_skin_default.c
+++ b/src/skin/slbt_skin_default.c
@@ -109,6 +109,11 @@ const struct argv_option slbt_default_options[] = {
"object name need not follow the platform's "
"library naming conventions"},
+ {"avoid-version", 0,TAG_AVOID_VERSION,ARGV_OPTARG_NONE,
+ ARGV_OPTION_HYBRID_ONLY,0,0,
+ "do not store version information, "
+ "do not create version-specific symlinks"},
+
{"version-info", 0,TAG_VERSION_INFO,ARGV_OPTARG_REQUIRED,
ARGV_OPTION_HYBRID_ONLY|ARGV_OPTION_HYBRID_SPACE,0,
"<current>[:<revision>[:<age>]]",