summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-03-07 12:18:33 -0500
committermidipix <writeonce@midipix.org>2016-03-08 14:21:09 -0500
commit9c25c7c53b06e150ef59831dc171441148135acc (patch)
tree6c420c7364415e641c0b4ea04c5e8bfaafb6df3b /src
parent4f1b202cf484d6d2e65c54f646c9133dbf5373cc (diff)
downloadslibtool-9c25c7c53b06e150ef59831dc171441148135acc.tar.bz2
slibtool-9c25c7c53b06e150ef59831dc171441148135acc.tar.xz
driver: added context initialization for -shared and -static.
Diffstat (limited to 'src')
-rw-r--r--src/driver/slbt_driver_ctx.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 1567b92..cdc309d 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -209,6 +209,14 @@ int slbt_get_driver_ctx(
case TAG_PREFER_NON_PIC:
cctx.drvflags |= SLBT_DRIVER_ANTI_PIC;
break;
+
+ case TAG_SHARED:
+ cctx.drvflags |= SLBT_DRIVER_SHARED;
+ break;
+
+ case TAG_STATIC:
+ cctx.drvflags |= SLBT_DRIVER_STATIC;
+ break;
}
} else
nunits++;