diff options
author | midipix <writeonce@midipix.org> | 2016-03-07 12:18:33 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-03-08 14:21:09 -0500 |
commit | 9c25c7c53b06e150ef59831dc171441148135acc (patch) | |
tree | 6c420c7364415e641c0b4ea04c5e8bfaafb6df3b | |
parent | 4f1b202cf484d6d2e65c54f646c9133dbf5373cc (diff) | |
download | slibtool-9c25c7c53b06e150ef59831dc171441148135acc.tar.bz2 slibtool-9c25c7c53b06e150ef59831dc171441148135acc.tar.xz |
driver: added context initialization for -shared and -static.
-rw-r--r-- | include/slibtool/slibtool.h | 2 | ||||
-rw-r--r-- | src/driver/slbt_driver_ctx.c | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/slibtool/slibtool.h b/include/slibtool/slibtool.h index 90c07ad..1855049 100644 --- a/include/slibtool/slibtool.h +++ b/include/slibtool/slibtool.h @@ -43,6 +43,8 @@ extern "C" { #define SLBT_DRIVER_VERBOSE 0x0800 #define SLBT_DRIVER_PRO_PIC 0x1000 #define SLBT_DRIVER_ANTI_PIC 0x2000 +#define SLBT_DRIVER_SHARED 0x4000 +#define SLBT_DRIVER_STATIC 0x8000 /* execution modes */ enum slbt_mode { 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++; |