summaryrefslogtreecommitdiff
path: root/src/slibtool.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-29 19:15:50 -0400
committermidipix <writeonce@midipix.org>2016-04-29 19:22:30 -0400
commited278036574c892772b26ee110ba6e1258affbe6 (patch)
tree2b426770e047a93a298b79a5798ecb760978cb1d /src/slibtool.c
parent0f5ca73f2949c3052e8935b2f70096a86f1ffcb1 (diff)
downloadslibtool-ed278036574c892772b26ee110ba6e1258affbe6.tar.bz2
slibtool-ed278036574c892772b26ee110ba6e1258affbe6.tar.xz
utility: add fallback initialization for flags.
Diffstat (limited to 'src/slibtool.c')
-rw-r--r--src/slibtool.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/slibtool.c b/src/slibtool.c
index 6548099..bc3584b 100644
--- a/src/slibtool.c
+++ b/src/slibtool.c
@@ -119,6 +119,9 @@ int slibtool_main(int argc, char ** argv, char ** envp)
else if (!(strcmp(dash,"static")))
flags = SLBT_DRIVER_FLAGS | SLBT_DRIVER_DISABLE_SHARED;
+ else
+ flags = SLBT_DRIVER_FLAGS;
+
/* driver context */
if ((ret = slbt_get_driver_ctx(argv,envp,flags,&dctx)))
return (ret == SLBT_USAGE) ? !--argc : 2;