summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-03-06 14:39:53 -0500
committermidipix <writeonce@midipix.org>2016-03-08 14:21:08 -0500
commit40fabb60a29153aeb9aba307f0266bd7539f9878 (patch)
treeee8d13bdccbffd107998e45e73d3d4a1678fe6f3
parent6376f0dd27115ae9951267c8f1313b498d439ba1 (diff)
downloadslibtool-40fabb60a29153aeb9aba307f0266bd7539f9878.tar.bz2
slibtool-40fabb60a29153aeb9aba307f0266bd7539f9878.tar.xz
driver: added context initialization for --preserve-dup-deps.
-rw-r--r--include/slibtool/slibtool.h1
-rw-r--r--src/driver/slbt_driver_ctx.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/include/slibtool/slibtool.h b/include/slibtool/slibtool.h
index edc24e5..0b62be5 100644
--- a/include/slibtool/slibtool.h
+++ b/include/slibtool/slibtool.h
@@ -38,6 +38,7 @@ extern "C" {
#define SLBT_DRIVER_CONFIG 0x0040
#define SLBT_DRIVER_DEBUG 0x0080
#define SLBT_DRIVER_FEATURES 0x0100
+#define SLBT_DRIVER_DEPS 0x0200
/* execution modes */
enum slbt_mode {
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 319678b..0e07c12 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -185,6 +185,11 @@ int slbt_get_driver_ctx(
else if (!strcmp("none",entry->arg))
cctx.tag = SLBT_WARNING_LEVEL_NONE;
break;
+
+ case TAG_DEPS:
+ cctx.drvflags |= SLBT_DRIVER_DEPS;
+ break;
+
}
} else
nunits++;