summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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;