summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-05-01 12:19:09 -0400
committermidipix <writeonce@midipix.org>2016-05-01 12:34:05 -0400
commite4f9330b708b17badf3f1f851f4ae5417301afdb (patch)
treece484dd11e7b88e37e9e4ced8ce7953db6b939d1
parentcaf7d04ff1054d24892547900145f93a6fdfadbe (diff)
downloadslibtool-e4f9330b708b17badf3f1f851f4ae5417301afdb.tar.bz2
slibtool-e4f9330b708b17badf3f1f851f4ae5417301afdb.tar.xz
utility: debug mode: initial integration.
-rw-r--r--src/slibtool.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/slibtool.c b/src/slibtool.c
index 46ae8fb..3cce2ca 100644
--- a/src/slibtool.c
+++ b/src/slibtool.c
@@ -128,6 +128,14 @@ int slibtool_main(int argc, char ** argv, char ** envp)
else
flags = SLBT_DRIVER_FLAGS;
+ /* debug */
+ if (!(strcmp(program,"dlibtool")))
+ flags |= SLBT_DRIVER_DEBUG;
+
+ else if (!(strncmp(program,"dlibtool",8)))
+ if ((program[8] == '-') || (program[8] == '.'))
+ flags |= SLBT_DRIVER_DEBUG;
+
/* driver context */
if ((ret = slbt_get_driver_ctx(argv,envp,flags,&dctx)))
return (ret == SLBT_USAGE) ? !--argc : 2;